Selective cache clean
| From: | Ivo Jansch | Date: | Wed, 20 Mar 2002 08:17:03 +0000 |
| Subject: | Selective cache clean | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3116@lists.php.net to get a copy of this message | ||
Hi,
I can clean the entire smarty cache, and I can clean by cache_id. But is it also possible to clean by only part of the cache_id?
I'll explain. Let's say I have a page, content.php, with two params: ?page=main&lng=uk
My cache_id is $QUERY_STRING, so for each page and for each language, I get a separate cache. Now, if someone modifies the main page, I want to throw all pages that have page=main in their cache_id away. Is that possible? I can't generate all the cache_id's on the fly, since there may be other parameters that are in the cache_id too.
Greetings,
Ivo
--
Ivo Jansch <ivo@ibuildings.nl>
ibuildings.nl BV - information technology
http://www.ibuildings.nl