diff --git a/change_log.txt b/change_log.txt index bd08999c..ee5f8406 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,3 +1,6 @@ +08/02/2010 +- bugfix of cache filename on extended templates when force_compile=true + 07/02/2010 - bugfix on changes of 05/02/2010 - preserve line endings type form template source diff --git a/libs/sysplugins/smarty_internal_template.php b/libs/sysplugins/smarty_internal_template.php index d5c95c56..8317f73a 100644 --- a/libs/sysplugins/smarty_internal_template.php +++ b/libs/sysplugins/smarty_internal_template.php @@ -336,12 +336,12 @@ class Smarty_Internal_Template extends Smarty_Internal_Data { { if ($this->isCached === null) { $this->isCached = false; - if (($this->caching == SMARTY_CACHING_LIFETIME_CURRENT || $this->caching == SMARTY_CACHING_LIFETIME_SAVED) && !$this->resource_object->isEvaluated && !$this->force_compile && !$this->force_cache) { + if (($this->caching == SMARTY_CACHING_LIFETIME_CURRENT || $this->caching == SMARTY_CACHING_LIFETIME_SAVED) && !$this->resource_object->isEvaluated) { if (!isset($this->cache_resource_object)) { $this->cache_resource_object = $this->smarty->loadCacheResource(); } $cachedTimestamp = $this->getCachedTimestamp(); - if ($cachedTimestamp === false) { + if ($cachedTimestamp === false || $this->force_compile || $this->force_cache) { return $this->isCached; } if ($this->caching === SMARTY_CACHING_LIFETIME_SAVED || ($this->caching == SMARTY_CACHING_LIFETIME_CURRENT && (time() <= ($cachedTimestamp + $this->cache_lifetime) || $this->cache_lifetime < 0))) {