Re: [SMARTY-DEV] Cache Handling 2.5 RC1

From: Date: Tue, 18 Mar 2003 14:22:24 +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-987@lists.php.net to get a copy of this message
I know this is an issue. On one hand you can't clear out all caches for a certain compile id. On the other hand, you can't clear out all caches for a cache group regardless of compile_id. I'd like to hear some more thoughts on this, maybe it should be changed back. Ultimately there needs to be a better way to handle this. 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 (#987) next »