[Templates] Templates Cached to Disk
Andy Wardley
abw@kfs.org
Sat, 16 Mar 2002 10:39:22 +0000
On Fri, Mar 15, 2002 at 11:12:23AM -0800, Tom Gioconda wrote:
> Another interesting thing is that the error doesn't occur if
> the script is run outside of IIS.
Sounds like it might be the problem of the race condition in the compiled
files. Something starts writing the compiled template file and another
process steps in and starts reading it before its finished.
http://tt2.org/pipermail/templates/2001-November/002142.html
The solution is easy (create a temporary file using File::Temp, write
compiled template to that, then rename it into place) but I haven't got
around to it yet.
A