Fwd: [Catalyst] Tutorial for cache?

Peter Edwards peter at dragonstaff.com
Wed Apr 15 22:22:53 GMT 2009


2009/4/15 Tomas Doran <bobtfish at bobtfish.net>
>
> On 15 Apr 2009, at 07:23, Alexander Tamm wrote:
>
>> J. Shirley wrote:
>>
>>>    I'm trying to find out how to implement caching on a site,
>>>    preferrably with Cache::FastMmap, but I'm open to suggestions. I'm
>>>    not including my trial source now, since I'm unsure I have read the
>>>    correct documentation.
>>>
>>
>>  Catalyst::Plugin::PageCache?
>>>
>>
>> Thanks, but I want to cache values that are the result of expensive
>> database queries, preferrably a a hash reference.
>>
>
> Take a look at Catalyst::Plugin::Cache. The docs are a bit crap (patches
> welcome!), but it'll do what you want, and has nice features to give you
> curried accessors for things etc..
>
> I'd personally combine that with Cache::Memcached, but you can use whatev=
er
> Cache:: backend you want.
>
> Cheers
> t0m
>

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.
There are some good papers here: http://highscalability.com/tags/memcached

Regards, Peter
http://perl.dragonstaff.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090415/d86f7=
bcd/attachment.htm


More information about the Catalyst mailing list