Fixed clear_cache().

This commit is contained in:
andrey
2001-12-18 15:18:51 +00:00
parent 46b0a6caea
commit af6217c22d
3 changed files with 6 additions and 4 deletions

6
NEWS
View File

@@ -1,5 +1,7 @@
- fixed bug in smarty_make_timestamp introduced in PHP 4.1.0 (Monte) - fixed a bug with incorrectly combined cache and compile id in
- fixed bug with cached insert debug timing (Monte) clear_cache(). (Andrei)
- fixed bug in smarty_make_timestamp introduced in PHP 4.1.0. (Monte)
- fixed bug with cached insert debug timing. (Monte)
- added 'script' attribute to {insert..} which specifies the script that - added 'script' attribute to {insert..} which specifies the script that
the insert function can be found in. (Andrei) the insert function can be found in. (Andrei)
- added default template function handler. (Monte) - added default template function handler. (Monte)

View File

@@ -429,7 +429,7 @@ class Smarty
if (!isset($compile_id)) if (!isset($compile_id))
$compile_id = $this->compile_id; $compile_id = $this->compile_id;
if (isset($compile_id) && isset($cache_id)) if (isset($compile_id) || isset($cache_id))
$auto_id = $compile_id . $cache_id; $auto_id = $compile_id . $cache_id;
else else
$auto_id = null; $auto_id = null;

View File

@@ -429,7 +429,7 @@ class Smarty
if (!isset($compile_id)) if (!isset($compile_id))
$compile_id = $this->compile_id; $compile_id = $this->compile_id;
if (isset($compile_id) && isset($cache_id)) if (isset($compile_id) || isset($cache_id))
$auto_id = $compile_id . $cache_id; $auto_id = $compile_id . $cache_id;
else else
$auto_id = null; $auto_id = null;