<div class="gmail_quote">On Wed, Jun 24, 2009 at 5:27 PM, <span dir="ltr"><<a href="mailto:kakimoto@tpg.com.au">kakimoto@tpg.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, there,<br>
I looked at the example in the doc for Catalyst::Plugin::PageCache<br>
(<a href="http://search.cpan.org/%7Eagrundma/Catalyst-Plugin-PageCache-0.21/lib/Catalyst/Plugin/PageCache.pm" target="_blank">http://search.cpan.org/~agrundma/Catalyst-Plugin-PageCache-0.21/lib/Catalyst/Plugin/PageCache.pm</a>).<br>
<br>
I m not very clear on it.<br>
<br>
1) Can someone please tell me where "sub some_method" is supposed to<br>
reside? Is it in the controller? Can't be cause there's a section<br>
commented "# in a controller method"<br>
<br>
2) Has anyone used Catalyst::Plugin::PageCache? Any complaints or words<br>
of praise?<br>
<br>
Thank you:)<br>
<br>
K. akimoto<br>
<br>
</blockquote><div><br>If you look at the configuration, you'll see that 'some_method' is defined as the cache_hook. This is to determine if the request (prior to dispatch) should be cached or not.<br><br>From the synopsis:<br>
<pre> # Optionally, a cache hook to be called prior to dispatch to<br> # determine if the page should be cached. This is called both<br> # before dispatch, and before finalize.<br></pre><br>
I've used PageCache, and it works out well enough. This was before I learned about how to properly setup a reverse proxy that can cache (varnish is my favorite) -- since spending some hours learning how to work with Varnish, I haven't used PageCache and likely never will again.<br>
<br>However, if you just want a plugin to "work" then PageCache will work fine.<br></div></div>