On Wed, 12 May 2004, Brian Cassidy wrote:

> Something I've been wanting for a while now is a generic caching system to
> plug in to CGI::Application. For example, I have a CGI::App which uses
> Gedcom.pm. Some of its operations can be quite lengthy, thus caching would
> be wise.

Why not just Memoize the methods that access Gedcom.pm?  It's not
obvious to me that caching the entire page is right choice here.
Often-times an application will include dynamic components and static
cacheable components on the same page.

> Cache::FileCache is used by default, but you can pass in your own Cache::*
> to replace it.

The Cache::* modules are quite slow in my experience.  I've used
Cache::Mmap for disk-based caching and I've heard Cache::FastMmap is
even better.

-sam

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to