Re: Question about caching

Michael Peters <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On 03/13/2012 03:51 PM, Dan Axtell wrote:

> The apps are mostly dynamic forms based on HTML::Template.  H::T has some
> caching options but they seem more aimed at CGI users.  I could convert to
> Template::Toolkit, which as I understand converts to compiled Perl code (which
> would presumably mean that mod_perl would leave the template objects in
> memory).

Why do you think the HTML::Template caching options are geared towards 
CGI users? It's actually the opposite. All of the caching modes work 
just fine under mod_perl. You just need to pick whether you want normal 
cache (per-process memory), shared_cache (shared memory), double_cache 
(mix of normal cache and shared_cache) or file_cache (no extra memory 
uses the filesystem so slower).

In fact, if you using normal CGI you can only use shared_cache or 
file_cache.

-- 
Michael Peters
Plus Three, LP
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.