mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 03:16:34 +00:00
fixed recipe
This commit is contained in:
+3
-3
@@ -357,9 +357,9 @@ To get around this, force Twig to invalidate the bytecode cache::
|
||||
parent::writeCacheFile($file, $content);
|
||||
|
||||
// Compile cached file into bytecode cache
|
||||
if (function_exists('opcache_invalidate') && ini_get('opcache.enable')) {
|
||||
opcache_invalidate($file);
|
||||
} elseif (function_exists('apc_compile_file') && ini_get('apc.enabled')) {
|
||||
if (function_exists('opcache_invalidate')) {
|
||||
opcache_invalidate($file, true);
|
||||
} elseif (function_exists('apc_compile_file')) {
|
||||
apc_compile_file($file);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user