Re: [SMARTY-DEV] Cache Handling 2.5 RC1

From: Date: Thu, 20 Mar 2003 16:11:20 +0000
Subject: Re: [SMARTY-DEV] Cache Handling 2.5 RC1
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-994@lists.php.net to get a copy of this message
We're still working on a solution for this. What if we went back to the old directory naming convention: /events/group1/124/en/ /events/group1/124/de/ /events/group1/124/fr/ /events/group1/125/en/ And just discard the compile_id when clearing cache files? This sounds like it would work OK. The only issue I can think of is you can't clear cache files for one particular compile_id, but that doesn't sound like its too useful anyways, nor should compile_id be related to cache clearing anyways. Thoughts? Monte On Tue, 2003-03-18 at 04:27, Andreas Kossmeier wrote: > hi, > > i posted this a week ago on smarty-general regarding the changed order > of compile and cache ids used to create the cache path, nobody responded > to that, so again: ;-) > > the changes in CVS V1.352 break the main advantages of different compile > ids. all different compiled versions of a template have one thing in > common: they depend on the same data, so if this data changes, you have > to clear _all_ caches of this template for the given cache id. > > CVS Version < 1.352 > > /events/group1/124/en/ > /events/group1/124/de/ > /events/group1/124/fr/ > /events/group1/125/en/ > ... > > CVS Version >= 1.352 > > /en/events/group1/124/ > /de/events/group1/124/ > /fr/events/group1/124/ > /en/events/group1/125/ > > now you can't clear the cache for "events|group1", because you don't > know about different compiled versions. > > ps.: currently i can't think of clearing a special compile_id. any > situation where someone would want to do this? in case this isn't > needed, i wouldn't choose the class var compile_id automatically for > clear_cache()... > > -- > andreas kossmeier > bergfex.at - http://www.bergfex.at -- Monte Ohrt <monte@ispi.net>

« previous php.smarty.dev (#994) next »