Bug in Smarty::clear_cache()

From: Date: Mon, 12 Nov 2001 12:07:12 +0000
Subject: Bug in Smarty::clear_cache()
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1905@lists.php.net to get a copy of this message
Hi all, Smarty-1.4.6 (and newer snapshot) seems to have introduced a bug in programatically removing a cache dir. In one of my files I use $tpl->clear_cache($cachefiles); This now demands a third parameter; setting the prototype to Smarty::clear_cache($tpl_file = null, $cache_id = null, $compile_id = null) doesn't remove the cache dir because in Smarty::_rm_auto() $auto_id then always is set. I've fixed this in _rm_auto() by checking strlen($auto_id), but this might not be the correct approach... Ciao, Thomas -- Thomas Pundt -------------------------- http://rp-online.de/ ----------------- RP-Online Verlagsgesellschaft mbH | pundt@rp-online.de Blumenstrasse 28, D-40212 Duesseldorf | Schlossstrasse 42, D-40477 Duesseldorf

« previous php.smarty.general (#1905) next »