fixed recipe

This commit is contained in:
Fabien Potencier
2015-09-13 18:56:37 +02:00
parent 9df64cf582
commit 2b6cfc01aa
+3 -3
View File
@@ -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);
}
}