- bugfix make $smarty->cache->clear() function independent from caching status

This commit is contained in:
Uwe.Tews
2010-03-17 17:37:32 +00:00
parent eb4436e7be
commit d89e53c2f6
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
17/03/2010
- bugfix make $smarty->cache->clear() function independent from caching status
16/03/2010 16/03/2010
- bugfix on assign attribute at registered template objects - bugfix on assign attribute at registered template objects
- make handling of modifiers on expression BC to Smarty2 - make handling of modifiers on expression BC to Smarty2

View File

@@ -131,7 +131,10 @@ class Smarty_Internal_CacheResource_File {
$_cache_id_parts_count = count($_cache_id_parts); $_cache_id_parts_count = count($_cache_id_parts);
} }
if (isset($resource_name)) { if (isset($resource_name)) {
$_save_stat = $this->smarty->caching;
$this->smarty->caching = true;
$tpl = $this->smarty->createTemplate($resource_name); $tpl = $this->smarty->createTemplate($resource_name);
$this->smarty->caching = $_save_stat;
if ($tpl->isExisting()) { if ($tpl->isExisting()) {
$_resourcename_parts = basename(str_replace('^','/',$tpl->getCachedFilepath())); $_resourcename_parts = basename(str_replace('^','/',$tpl->getCachedFilepath()));
} else { } else {
@@ -184,4 +187,4 @@ class Smarty_Internal_CacheResource_File {
} }
} }
?> ?>