Clinton Gormley wrote:
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?

You may want to read through this previous thread:

http://www.template-toolkit.org/pipermail/templates/2005-July/007526.html

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

Reply via email to