If you place the ';' you won't need to place more than one 'per' :) The idea is good ;) It should be as easy as making a str_concat behind the scene :-)
2009/9/23 Kornel Lesiński <kor...@aardvarkmedia.co.uk> > On 23-09-2009 at 08:17:33 Marco Pivetta <ocram...@gmail.com> wrote: > > hmmm... Never used phptal:cache that much... But I have an idea. >> What about something like: >> <definer tal:omit-tag="" tal:define="cachekey string:${mylang}::${myurl}"> >> > > BTW: you can use <tal:block> instead of tal:omit-tag="". > > <mycacheditem phptal:cache="1d per cachekey"/> >> </definer> >> > > Yes, you'll have to do that. I haven't implemented double "per". > > Any ideas for more generic phptal:cache syntax? > > I'd like to add cache plugins in the future, and they'll probably need > custom arguments. > > How about phptal:cache="1h; per key; per something; another argument; etc > etc"? > > http://phptal.org/wiki/doku.php/cache > > -- > regards, Kornel > > > _______________________________________________ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal > -- Marco Pivetta - Ocramius Aethril Standard Ogame Project - StOgame http://www.stogame.net Making Ogame a better place... Sent from Carbonera, TV, Italy
_______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal