So, back to my bad thoughts. I'd like to tinker with the idea within AxKit
Taglibs. Maybe by inheriting and extending A::A::L::X::TaglibHelper or
A::A::X::L::SimpleTaglib so all taglibs built upon it could have
attributes like:
varybyparam="r;t" varybyheader="Accept-Language" duration="10"
or even better, in their own namespace
cache:varybyparam="r;t" cache:varybyheader="Accept-Language" cache:duration="10"
That way the output of taglibs could be cached and controlled centrally,
without each tablib having to worry about the implimentation details.
I'm sure somehow someway, this is possible. Honestly though, after a brief
look at the Taglibhelper source, I wouldn't know where to begin.
Should be fairly easy (maybe). You'd have to serialise the structure to disk (Storable) into a AxKit::Cache object, but that's fairly trivial. The hard part is getting the caching just right (the duration/ttl stuff).
This is probably dependant on some of the work Chris Leishman has done, which we need to debate when/where we check that in (i.e. is it a 1.7 or a 2.0 thing). But all this dev talk should probably happen on the dev list ;-)
Matt.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
