<div class="gmail_quote"><div class="gmail_quote">2009/4/15 Tomas Doran <span dir="ltr">&lt;<a href="mailto:bobtfish@bobtfish.net" target="_blank">bobtfish@bobtfish.net</a>&gt;</span><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On 15 Apr 2009, at 07:23, Alexander Tamm wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
J. Shirley wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    I&#39;m trying to find out how to implement caching on a site,<br>
    preferrably with Cache::FastMmap, but I&#39;m open to suggestions. I&#39;m<br>
    not including my trial source now, since I&#39;m unsure I have read the<br>
    correct documentation.<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Catalyst::Plugin::PageCache?<br>
</blockquote>
<br>
Thanks, but I want to cache values that are the result of expensive database queries, preferrably a a hash reference.<br>
</blockquote>
<br>
Take a look at Catalyst::Plugin::Cache. The docs are a bit crap (patches welcome!), but it&#39;ll do what you want, and has nice features to give you curried accessors for things etc..<br>
<br>
I&#39;d personally combine that with Cache::Memcached, but you can use whatever Cache:: backend you want.<br>
<br>
Cheers<br>
t0m<br></blockquote></div></div><br>
<div>For sure, use memcached. You should also try and cache everywhere, at the db access level, at the business object level, page fragments and also pages.</div><div>There are some good papers here: <a href="http://highscalability.com/tags/memcached" target="_blank">http://highscalability.com/tags/memcached</a></div>

<div><br></div><div>Regards, Peter</div><div><a href="http://perl.dragonstaff.co.uk" target="_blank">http://perl.dragonstaff.co.uk</a></div><div><br></div><div><br></div></div><br>