mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- bugfix of cache filename on extended templates when force_compile=true
This commit is contained in:
@@ -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
|
||||
|
@@ -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))) {
|
||||
|
Reference in New Issue
Block a user