- new feature If ACP is enabled force an apc_compile_file() when compiled or cached template was updated

This commit is contained in:
uwetews
2015-12-25 10:29:29 +01:00
parent 613e66c257
commit fbf544286a
4 changed files with 12 additions and 2 deletions
+3 -1
View File
@@ -165,7 +165,9 @@ class Smarty_Template_Compiled extends Smarty_Template_Resource_Base
private function loadCompiledTemplate(Smarty_Internal_Template $_template)
{
if (function_exists('opcache_invalidate')) {
opcache_invalidate($_template->compiled->filepath);
opcache_invalidate($_template->compiled->filepath, true);
} elseif (function_exists('apc_compile_file')) {
apc_compile_file($_template->compiled->filepath);
}
$_smarty_tpl = $_template;
if (defined('HHVM_VERSION')) {