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