Somewhat related, I've got $Template::Provider::STAT_TTL set yet I
noticed something I'm not clear on.
I have in my INCLUDE_PATH two directories, "site" and "default". So
on the first request for config.tt I see:
site/templates/config.tt (No such file or directory)
default/templates/config.tt (Found!)
Now, I think I would expect that once found TT would not look
again for config.tt until STAT_TTL seconds have passed. Yet, every
request I see a stat for:
site/templates/config.tt (No such file or directory)
In other words, it's still stating the file that was *not* found on
every request regardless of STAT_TTL.
Since most of my templates are in the "default" directory, with some
overriding templates in "site" then I end up stat'ing most of the
templates every request regardless of STAT_TTL settings.
Almost seems like there should be two TTL settings -- one for how
often to check if the template is newer than the compiled template,
and another to check that a given template still maps to a given
path in INCLUDE_PATH.
Whatcha think?
--
Bill Moseley
[EMAIL PROTECTED]
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates