From 014debad30e0aa1a52a1b65e637be37919b584e7 Mon Sep 17 00:00:00 2001 From: messju Date: Mon, 24 Mar 2003 16:32:14 +0000 Subject: [PATCH] made clear_cache() ignore compile_id when clearing cache_groups --- NEWS | 3 +++ libs/Smarty.class.php | 3 +++ 2 files changed, 6 insertions(+) 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)) {