diff options
Diffstat (limited to 'include/smarty/libs/sysplugins/smarty_cacheresource.php')
-rw-r--r-- | include/smarty/libs/sysplugins/smarty_cacheresource.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/smarty/libs/sysplugins/smarty_cacheresource.php b/include/smarty/libs/sysplugins/smarty_cacheresource.php index 8cd2805a5..14ab62fd9 100644 --- a/include/smarty/libs/sysplugins/smarty_cacheresource.php +++ b/include/smarty/libs/sysplugins/smarty_cacheresource.php @@ -215,12 +215,9 @@ abstract class Smarty_CacheResource */ public function invalidLoadedCache(Smarty $smarty) { - if (isset($smarty->_cache['template_objects'])) { - foreach ($smarty->_cache['template_objects'] as $key => $tpl) { - if (isset($tpl->cached)) { - unset ($smarty->_cache['template_objects'][$key]); - } - } + $smarty->_cache['isCached'] = array(); + if (isset($smarty->ext->_subtemplate)) { + $smarty->ext->_subtemplate->tplObjects = array(); } } } |