diff --git a/NEWS b/NEWS index bbefc336..ac577451 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ + - made clear_cache() ignore compile_id, when clearing cache-groups (this + is when no $tpl_file is supplied) (messju) + - made onmouseout XHTML-compliant in function.popup.php (messju) - applied local-var-naming-scheme to fetch() (messju) - renamed $localvars to $_localvars in cache-file-handling-functions, added _get_auto_id()-function (messju) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index c75da676..338adbf2 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -911,6 +911,9 @@ class Smarty if (!isset($compile_id)) $compile_id = $this->compile_id; + if (!isset($tpl_file)) + $compile_id = null; + $_auto_id = $this->_get_auto_id($cache_id, $compile_id); if (!empty($this->cache_handler_func)) {