[Templates] Turning file version checking off
Bill Ward
bill@wards.net
Wed, 20 Sep 2006 09:23:54 -0700
On 9/20/06, Clinton Gormley <clint@traveljury.com> wrote:
> 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.
I have a similar need. I couldn't find a solution, so we ended up
storing the template files in memory and bypassing the TTk's file
loading system. Startup memory usage is considered cheaper than the
extra file processing.
Besides the above concern, another important reason we want this in
production is so that when we push a new version it doesn't take
effect until we bounce the server. In particular we wouldn't want it
using a mix of old and new file versions during the middle of a code
push.
--
Help bring back the San Jose Earthquakes - http://www.soccersiliconvalley.com/