summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/opcache/ZendAccelerator.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 85e0de94dd..c8f640bfeb 100644
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@ -1892,6 +1892,11 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type)
/* The Accelerator is disabled, act as if without the Accelerator */
ZCG(cache_opline) = NULL;
ZCG(cache_persistent_script) = NULL;
+ if (file_handle->filename
+ && ZCG(accel_directives).file_cache
+ && ZCG(enabled) && accel_startup_ok) {
+ return file_cache_compile_file(file_handle, type);
+ }
return accelerator_orig_compile_file(file_handle, type);
} else if (file_cache_only) {
ZCG(cache_opline) = NULL;