Re: [SMARTY] Problem clearing cache groups

From: Date: Tue, 13 Sep 2005 11:23:51 +0000
Subject: Re: [SMARTY] Problem clearing cache groups
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13031@lists.php.net to get a copy of this message
ups... On Tue, Sep 13, 2005 at 12:08:08PM +0200, messju mohr wrote: > On Tue, Sep 13, 2005 at 11:56:33AM +0200, Ivo Jansch wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi, > > > > messju mohr wrote: > > > > >> cache_groups only work, if you leave out the template parameter of clear_cache(). > > > > Isn't that a bug then? > > no. > > > I thought cache_id's were meant to be able to have multiple cached > > versions of a single template. So a 1->N relation between template and > > cache_id. > > a cache_groupd is a groups of *pages*, and not a group of templates. this should read: a cache_group is a group of *pages*, and not a group of templates. > you don't cache a template, you cache output (which may consists of > multiple templates when {include} is in use). > > you't don't want to clear templates with clear_cache(), you want to > clear pages. > > > If what you say is true, then 2 different templates, each using the same > > set of cachegroups (tpl a, group nl, group en; tpl b, group nl, group > > en) would not work? > > it that would not work as *you* seem to expect, yes. this should read: that would not work as *you* seem to expect, yes. > > This would mean I would have to add the template name to the cache > > group, or developers could by accident use the same id's and clear > > eachothers templates. > > see above. > > > Greetings, > > Ivo > > > > - -- > > Ivo Jansch <ivo@ibuildings.nl> > > ibuildings.nl BV - information technology > > http://www.ibuildings.nl > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.2.4 (MingW32) > > Comment: Using GnuPG with Thunderbird - > > http://enigmail.mozdev.org > > > > iD8DBQFDJqJR95NUnGFZm9cRAn87AJ9OIheWocnk1MHvypv1y2KHrT255gCeI/N5 > > OXniUH5+VJIQFmkVooY5e9g= > > =tUYW > > -----END PGP SIGNATURE-----

« previous php.smarty.general (#13031) next »