Re: [SMARTY] cache date and time
| From: | Ivo Jansch | Date: | Thu, 06 Jun 2002 06:58:29 +0000 |
| Subject: | Re: [SMARTY] cache date and time | ||
| References: | 1 2 3 4 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-121@lists.php.net to get a copy of this message | ||
Hi,
Monte Ohrt wrote:
We can still remove caches by resource name alone, it would just have a cache_id of null. In the majority of cases cache_id would be null so 99% of your templates would be under the root directory /0/, which really isn't a big deal IMHO. Thoughts?Sounds ok, but I would still need a way to do grouping. I would need to be able to clear every cache_id that was based on the same page. For example, I have a page 'news'. It contains some introductory text, and some news items. If I click on the newsitem, that newsitem is zoomed in. Now, suppose someone edits the introductory text. I need to clear the cache, but there are more than one cached versions of this page (one for each newsitem). I can't clear the cache by resource_id either, because all pages use the toplevel template page.tpl. My cache_id would be $page_id.$news_id. So I would need to be able to clear the cache based on a part of the cache_id. A solution would be to clear the cache based on a substring, or some regular expression on the cache_id. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl