diff --git a/modules/cms/classes/CodeParser.php b/modules/cms/classes/CodeParser.php index e908f1137..08f257843 100644 --- a/modules/cms/classes/CodeParser.php +++ b/modules/cms/classes/CodeParser.php @@ -334,7 +334,7 @@ class CodeParser * Compile cached file into bytecode cache */ if (Config::get('cms.forceBytecodeInvalidation', false)) { - if (function_exists('opcache_invalidate')) { + if (function_exists('opcache_invalidate') && ini_get('opcache.enable')) { opcache_invalidate($path, true); } elseif (function_exists('apc_compile_file')) {