RE: [SMARTY] Deleting a specific cache id from a different smarty instance
| From: | Hoffman, Geoffrey | Date: | Wed, 22 Jan 2003 14:24:24 +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-7293@lists.php.net to get a copy of this message | ||
> > I'm wondering if there's an easy way to clear a cache id at
> > database update time instead.
> Maybe you could instanciate your $smarty_view_app inside your
> admin-pages
> and call $smarty_view_app->clear_cache() or whatever. it is
> totally legal to have more than one instance of smarty
> in a php-script.
Thanks Messju, I'll give it a try. Seems logical.
I was thinking of writing a flag file to disk somewhere with
the cache-id to destroy that the view app would pick up, but
your idea sounds easier.