From 1dfbe19ebf7bf72bdbd661f7fe926e7ecb226dc8 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews@googlemail.com" Date: Sat, 11 Jan 2014 12:21:12 +0000 Subject: [PATCH] - internals content cache should be clear when updating cache file --- change_log.txt | 1 + libs/sysplugins/smarty_cacheresource.php | 1 + 2 files changed, 2 insertions(+) diff --git a/change_log.txt b/change_log.txt index 3abb9505..af6db318 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ ===== trunk ===== 11.01.2014 - bugfix "* }" (spaces before right delimiter) was interpreted by mistake as comment end tag (Issue 170) + - internals content cache should be clear when updating cache file 08.01.2014 - bugfix Smarty_CacheResource_Custom did not handle template resource type specifications on clearCache() calls (Issue 169) diff --git a/libs/sysplugins/smarty_cacheresource.php b/libs/sysplugins/smarty_cacheresource.php index efdc1abe..22262bae 100644 --- a/libs/sysplugins/smarty_cacheresource.php +++ b/libs/sysplugins/smarty_cacheresource.php @@ -372,6 +372,7 @@ class Smarty_Template_Cached { if (!$_template->source->recompiled) { if ($this->handler->writeCachedContent($_template, $content)) { + $this->content = null; $this->timestamp = time(); $this->exists = true; $this->valid = true;