[Catalyst] Partial page cache plugin

Larry Leszczynski larryl at emailplus.org
Mon Dec 7 20:58:35 GMT 2009


On Sun, 06 Dec 2009 19:07 -0600, "Peter Karman" <peter at peknet.com>
wrote:
> Julien Sobrier wrote on 12/6/09 2:04 AM:
> > Hello,
> > there is a plugin for caching an entire page.  I am looking for the same
> > type of plugin to cache part of the page, but did not find one. Waht is the
> > best way to achieve this in Catalyst?
> > 
> 
> If you are using Template Toolkit,
> 
> http://search.cpan.org/dist/Template-Plugin-Cache/

Agree, this will do what you want.  To have it use your Catalyst cache,
just do something like this:

   USE cache = Cache('cache' => c.cache);

You can use it to cache either a whole page or just part of one, since
you can "cache.inc()" or "cache.proc()" to INCLUDE or PROCESS any
template (or BLOCK? not sure...) from inside another one.


Larry



More information about the Catalyst mailing list