Re: Selective cache clean
| From: | Monte Ohrt | Date: | Wed, 20 Mar 2002 14:28:26 +0000 |
| Subject: | Re: Selective cache clean | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3121@lists.php.net to get a copy of this message | ||
This isn't currently possible, but it has been brought up before. The
cacheid is not part of the filename, nor is it in the cached file. If
you wanted to delete by partial cacheid we'd have to adjust something,
like put the cacheid in the filename. Smarty used to do this in way
earlier versions, but then we had to URL-encode cacheids and you can end
up with quite long filenames, and the directory name isn't quite as
random.
Ivo Jansch wrote:
>
> 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
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
Director of Technology, ispi Inc.