diff --git a/libs/sysplugins/smarty_template_compiled.php b/libs/sysplugins/smarty_template_compiled.php index a8a5aaffb..6064605f8 100644 --- a/libs/sysplugins/smarty_template_compiled.php +++ b/libs/sysplugins/smarty_template_compiled.php @@ -124,7 +124,7 @@ public function process(Smarty_Internal_Template $_smarty_tpl) */ private function loadCompiledTemplate(Smarty_Internal_Template $_smarty_tpl) { - if (function_exists('opcache_invalidate')) { + if (function_exists('opcache_invalidate') && strlen(ini_get("opcache.restrict_api")) < 1) { opcache_invalidate($this->filepath, true); } elseif (function_exists('apc_compile_file')) { apc_compile_file($this->filepath);