mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
- bugfix make $smarty->cache->clear() function independent from caching status
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
17/03/2010
|
||||
- bugfix make $smarty->cache->clear() function independent from caching status
|
||||
|
||||
16/03/2010
|
||||
- bugfix on assign attribute at registered template objects
|
||||
- make handling of modifiers on expression BC to Smarty2
|
||||
|
@@ -131,7 +131,10 @@ class Smarty_Internal_CacheResource_File {
|
||||
$_cache_id_parts_count = count($_cache_id_parts);
|
||||
}
|
||||
if (isset($resource_name)) {
|
||||
$_save_stat = $this->smarty->caching;
|
||||
$this->smarty->caching = true;
|
||||
$tpl = $this->smarty->createTemplate($resource_name);
|
||||
$this->smarty->caching = $_save_stat;
|
||||
if ($tpl->isExisting()) {
|
||||
$_resourcename_parts = basename(str_replace('^','/',$tpl->getCachedFilepath()));
|
||||
} else {
|
||||
@@ -184,4 +187,4 @@ class Smarty_Internal_CacheResource_File {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user