Fwd: [Catalyst] Tutorial for cache?
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.
>> 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=
> Cache:: backend you want.
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Catalyst