diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-04-25 06:17:39 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-04-25 06:17:39 -0400 |
commit | f027bf81cdaddee5d6474199c1b7adce50e6e07d (patch) | |
tree | 23fd281c6627b7adc1421fcddf939e6447a4d18b /library/Smarty/libs/sysplugins/smarty_cacheresource.php | |
parent | f3eae7132f8c104db2197858208f16a5792507be (diff) | |
parent | a9d926886e6f8ed389031791799ffd352b8cb651 (diff) | |
download | volse-hubzilla-f027bf81cdaddee5d6474199c1b7adce50e6e07d.tar.gz volse-hubzilla-f027bf81cdaddee5d6474199c1b7adce50e6e07d.tar.bz2 volse-hubzilla-f027bf81cdaddee5d6474199c1b7adce50e6e07d.zip |
Merge remote-tracking branch 'upstream/dev' into help-content
Diffstat (limited to 'library/Smarty/libs/sysplugins/smarty_cacheresource.php')
-rw-r--r-- | library/Smarty/libs/sysplugins/smarty_cacheresource.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/library/Smarty/libs/sysplugins/smarty_cacheresource.php b/library/Smarty/libs/sysplugins/smarty_cacheresource.php index 8cd2805a5..14ab62fd9 100644 --- a/library/Smarty/libs/sysplugins/smarty_cacheresource.php +++ b/library/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(); } } } |