[Templates] compilied cache versions

Bill Ward bill@wards.net
Thu, 10 May 2007 10:55:17 -0700


On 5/10/07, Travis Basevi <travis.basevi@wisdengroup.com> wrote:
> Bill Ward wrote:
> > How about an option to disable the timestamp check and unconditionally
> > do the conversion?
>
> Wouldn't that defeat the entire purpose of having a compiled cached
> version? Or am I completely confused? (The smart money is on the latter)

Only if the compiled cache is automatic ... I guess I didn't explain
what I meant very well.  What I meant was to have some way for you to
specify that the template has changed, rather than to go by timestamps
automatically.

This is an issue for me as we do not want the Template engine to
notice the files have changed when we are doing a release.  We want to
push the files and then restart the server.  We solve this by actually
loading the Template files into memory so that it doesn't even know
the files exist.  But I'd rather tell it to ignore the timestamps
entirely.