clear_all_cache & several smarty instances

From: Date: Thu, 13 Feb 2003 12:50:30 +0000
Subject: clear_all_cache & several smarty instances
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7723@lists.php.net to get a copy of this message
Hi, what if I have several Smarty instances: $Smarty1 = new Smarty; $Smarty2 = new Smarty; // do calculations, assign, ... // I want to clear all smarty cache files for Smarty 1 only: $Smarty1->clear_all_cache(); It will clear all cache files in the cache directory, not only the cache files of $Smarty1... Maybe I should put my cache files in different subdirectories if I want to keep some of them... As it seems to me that Smarty does caching per page, whatever the name of the Smarty instance in PHP. Am I correct? But is that behavior normal? Thx, Philippe.

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