I'm porting Apache::VMonitor to mp2 and at the same time decided to rewrite it to use TT2. I'm including all the default templates in VMonitor.pm to keep things self-contained. They are generated by perl subs. Because of that I can't cache the compiled versions of those templates. If I remember correctly one needs to subclass Template::Provider to handle that. I was wondering if anybody has a ready subclass that I can re-use. Or is there a built-in support for caching compiled templates?

Please notice that I'm after in-memory caching, since again, I don't want users to do any special setups, but just install Apache::VMonitor and have it working without any fs tweaks (e.g. to cache on the disk, once needs to prepare a dir, make it rwx by the user running mod_perl, etc...) I have just a few small templates and storing them in memory should be just fine.

Thanks.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to