[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] RFC: CGI::Application::RunModeCache


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/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.