On Jul 1, 2005, at 4:25 PM, Tim Tompkins wrote:
I'm just getting into TT and have the same concern. Looking at Template::Provider, it appears that $Template::Provider::STAT_TTL could be set to something arbitrarily large to avoid excessive stat calls.
What exactly is "excessive"? How expensive are your stat calls? Are you measuring, or just assuming that "stat calls" = "server grinds to a halt"? How much traffic are you getting that stat calls are the bottleneck?
When you start playing with caching, you're probably trading off cheap time (server) for expensive time (programmer). There are few things more frustrating, or more of a time sink, than a change made to a template file that "doesn't work" because TT was using the cached copy of the file, and the programmer keeps flailing at the source file wondering why his code is wrong.
Premature optimization is the root of all evil, and unless you're damn sure those stat calls are costing you, don't mess with the TTL. If you absolutely can't sleep at night, maybe set a TTL of 10 seconds.
xoxo, Andy -- Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
