<div class="gmail_quote">On Wed, Jun 24, 2009 at 5:27 PM,  <span dir="ltr">&lt;<a href="mailto:kakimoto@tpg.com.au">kakimoto@tpg.com.au</a>&gt;</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 &quot;sub some_method&quot; is supposed to<br>
reside? Is it in the controller? Can&#39;t be cause there&#39;s a section<br>
commented &quot;# in a controller method&quot;<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&#39;ll see that &#39;some_method&#39; 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&#39;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&#39;t used PageCache and likely never will again.<br>
<br>However, if you just want a plugin to &quot;work&quot; then PageCache will work fine.<br></div></div>