mirror of
https://github.com/smarty-php/smarty.git
synced 2026-04-28 18:02:07 +02:00
- new feature If ACP is enabled force an apc_compile_file() when compiled or cached template was updated
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user