[Catalyst] Re: Capture page on server?

Aristotle Pagaltzis pagaltzis at gmx.de
Mon Jun 23 23:40:09 BST 2008


* Ryan D Johnson <ryandjohnson at gmail.com> [2008-06-23 23:10]:
> Here's where I show ignorance of the Catalyst plugin model. For
> example, C::P::PageCache and C::P::Compress::Gzip both hook
> into finalize -- PageCache to cache the data, Gzip to compress
> the data. Is the calling order for those two guaranteed somehow
> by NEXT?

Indeed it is.

> If I include PageCache *last* (or *first*?) in the plugin load
> order, will that guarantee that all the other plugins have done
> their work?

The CP::PageCache POD says “PageCache should be placed at the end
of your plugin list” – probably for a reason. :-)

> If so, it might make sense for PageCache to pay attention to
> the Vary header. I imagine that the cache save and lookup code
> will get significantly more complex, though. 

Not a whole lot – it needs to incorporate those request headers
into a compound key.

Parsing the Vary header isn’t very hard either.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list