mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
- bugfix on caching mode SMARTY_CACHING_LIFETIME_SAVED and cache_lifetime = 0
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
23/03/2010
|
23/03/2010
|
||||||
- bugfix on template inheritance when calling multiple child/parent relations
|
- bugfix on template inheritance when calling multiple child/parent relations
|
||||||
|
- bugfix on caching mode SMARTY_CACHING_LIFETIME_SAVED and cache_lifetime = 0
|
||||||
|
|
||||||
22/03/2010
|
22/03/2010
|
||||||
- bugfix make directory separator operating system independend in compileAllTemplates()
|
- bugfix make directory separator operating system independend in compileAllTemplates()
|
||||||
|
@@ -357,7 +357,7 @@ class Smarty_Internal_Template extends Smarty_Internal_Data {
|
|||||||
return $this->isCached;
|
return $this->isCached;
|
||||||
}
|
}
|
||||||
$this->cacheFileChecked = true;
|
$this->cacheFileChecked = true;
|
||||||
if ($this->caching === SMARTY_CACHING_LIFETIME_SAVED && $this->properties['cache_lifetime'] > 0 && (time() > ($this->getCachedTimestamp() + $this->properties['cache_lifetime']))) {
|
if ($this->caching === SMARTY_CACHING_LIFETIME_SAVED && $this->properties['cache_lifetime'] >= 0 && (time() > ($this->getCachedTimestamp() + $this->properties['cache_lifetime']))) {
|
||||||
$this->rendered_content = null;
|
$this->rendered_content = null;
|
||||||
return $this->isCached;
|
return $this->isCached;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user