Re: [PHPTAL] Cache problem with double "per"
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 > On 23-09-2009 at 08:17:33 Marco Pivetta wrote: > > hmmm... Never used phptal:cache that much... But I have an idea. >> What about something like: >> >> > > BTW: you can use instead of tal:omit-tag="". > > >> >> > > 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
Re: [PHPTAL] Cache problem with double "per"
On 23-09-2009 at 08:17:33 Marco Pivetta wrote: hmmm... Never used phptal:cache that much... But I have an idea. What about something like: BTW: you can use instead of tal:omit-tag="". 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
Re: [PHPTAL] Cache problem with double "per"
hmmm... Never used phptal:cache that much... But I have an idea. What about something like: 2009/9/23 Andrew > All works fine, but i got stuck on problem with "per" parameter. > > I want to cache page for separate URL and Language. > > Current language is specified in "language" var, not in url, so when i try > to > do something like phptal:cache="1d per url per language" i get an error. > > Is there a way? > > > ___ > 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