Re: [SMARTY] Problem with clear_cache and cache groups

From: Date: Thu, 31 May 2007 12:24:56 +0000
Subject: Re: [SMARTY] Problem with clear_cache and cache groups
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13715@lists.php.net to get a copy of this message
> I'm using smarty 2.6.18, I've just upgraded from smarty 2.5 (...). > I'm using clear_cache to clear cache groups, it did work with smarty 2.5 > but now it doesn't work anymore. Trying every available release, I found that the latest version able to clear my group caches is 2.6.1. But it not compatible with php5 (I have: "Fatal error: using $this when not in object context"). To test the releases I used the following code <?php require('lib/smarty/libs/Smarty.class.php'); $tpl = new Smarty(); $tpl->cache_dir = "/var/www/localhost/htdocs/test/cache"; $tpl->compile_dir = '/var/www/localhost/htdocs/test/templates_c'; $res = $tpl->clear_cache(null, "latest"); echo ($res ? "true\n" : "false\n"); ?> The root of the cache group is "latest". Versions until 2.6.1 work, newer not, all things being the same. -- Francesco

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