Deleting a specific cache id from a different smarty instance
| From: | Hoffman, Geoffrey | Date: | Wed, 22 Jan 2003 01:28:41 +0000 |
| Subject: | Deleting a specific cache id from a different smarty instance | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-7288@lists.php.net to get a copy of this message | ||
I found
// clear the cache for a particular cache id in an multiple-cache template
$smarty->clear_cache("index.tpl","CACHEID");
on the docs, but it appears that this is meant to be used at view-time, e.g.
right before a 'display' is called.
I'm wondering if there's an easy way to clear a cache id at database update
time instead.
The admin app I'm building will have a completely different instance of
$smarty (technically, a $smarty_admin_app based on extending the smarty
class), so it has different paths than the instance of $smarty_view_app)...
I need to have the $smarty_admin_app trash a cacheid from the
$smarty_view_app ... seems like I may have to roll my own PHP handler to do
it, but was hoping to avoid that.
Any suggestions would be most helpful.
Regards-
Geoff
By the way, now that I've been using smarty for a while, it becomes more
apparent with each hour I save what an awesome achievement it is.
Rock on Monte!