Re: Improving performance with TT2

Frédéric Buclin <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
>> [ Please keep replies on the list. ]

Oops, sorry. Didn't notice that there was no Reply-To header when
clicking Reply. :)


>> Ok.  For mod_perl, you should take care to keep your Template object
>> around between requests, so that it can use the same cache.  That
>> makes a huge difference.

OK, I will look into it.


>> For CGI (and this won't hurt mod_perl either), you should set
>> COMPILE_EXT and COMPILE_DIR.

We use COMPILE_DIR, but not COMPILE_EXT. I hope this doesn't hurt. Our
configuration for TT can be found here:

 http://mxr.mozilla.org/mozilla/source/webtools/bugzilla/Bugzilla/Template.pm#567


Frédéric
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.