aboutsummaryrefslogtreecommitdiffstats
path: root/library/Smarty/libs/sysplugins/smarty_cacheresource.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-04-23 16:57:32 -0700
committerredmatrix <git@macgirvin.com>2016-04-23 16:57:32 -0700
commitce45a1cf945617f3895fb3e40b13e6f705fbc000 (patch)
tree8d407ab11e8c4fdc4560cf67e0fd242f7f1544a0 /library/Smarty/libs/sysplugins/smarty_cacheresource.php
parent79c63e3cf44438a7f993b2ea1813b9234ea4d3f3 (diff)
parent9d698c08876169228b09e144f80c5311fcb0fa49 (diff)
downloadvolse-hubzilla-ce45a1cf945617f3895fb3e40b13e6f705fbc000.tar.gz
volse-hubzilla-ce45a1cf945617f3895fb3e40b13e6f705fbc000.tar.bz2
volse-hubzilla-ce45a1cf945617f3895fb3e40b13e6f705fbc000.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'library/Smarty/libs/sysplugins/smarty_cacheresource.php')
-rw-r--r--library/Smarty/libs/sysplugins/smarty_cacheresource.php9
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();
}
}
}