[Templates] Turning file version checking off

Clinton Gormley clint@traveljury.com
Wed, 20 Sep 2006 11:59:38 +0200


I may be barking up the wrong tree, but the way I understand it, TT does
the following:
 - when PROCESS xxxx is called
 - checks if it is in the current file
 - if not, checks for the location of the file xxxx
 - checks the last modified date
 - if has been modified
   - recaches it
 - runs it

which is perfect for development, but I was wondering if it would speed
things up in production if I could disable the disk check, so I can tell
TT that it should use the templates as they are compiled, and not check
for more recent versions.

Or maybe something along the lines of mod_perl2's ReloadTouchFile:
http://perl.apache.org/docs/2.0/api/Apache2/Reload.html#toc_Special__Touch__File

where the files are only checked when the TouchFile changes.

The reason I'm asking this is that I'm using a lot of templates for a
small block of code (ie a building block that is used in several
different places) and I am concerned that this will impact performance.

Thoughts?

thanks

clint