RE: [Smarty] Deleting a specific cache id from a different smarty instance

From: Date: Sat, 25 Jan 2003 18:26:58 +0000
Subject: RE: [Smarty] Deleting a specific cache id from a different smarty instance
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7334@lists.php.net to get a copy of this message
Now I just realized that in my publication system, I'm going to need to trash all the summary-display section cache at 12:01 am on each day. Should I use CRON for that? GH> Just for the record, Thanks Messju, GH> your suggestion worked like a champ. GH> GH> It only took four lines of code: GH> GH> $id = $theOneToTrash; GH> require("../smarty_myapp.class.php"); GH> $smtemp = new smarty_myapp(); GH> $smtemp->clear_cache('index.tpl', $id); MM>> Maybe you could instanciate your $smarty_view_app MM>> inside your admin-pages and call MM>> $smarty_view_app->clear_cache(). MM>> It is totally legal to have more than one MM>> instance of smarty in a php-script. GH>>> I'm wondering if there's an easy way to clear a GH>>> cache id at database update time instead of GH>>> display time.

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