[Templates] Templates Cached to Disk

Perrin Harkins perrin@elem.com
Fri, 15 Mar 2002 12:09:08 -0500


Tom Gioconda wrote:
> I'm having a problem with some templates on my site returning "invalid
> template reference: 1" a lot.

Hmmm.  Did that race condition with writing cache files get fixed? 
Which version are you running?  Are you writing to NFS?

 > Shouldn't the Template
> Toolkit attempt to load from the original source template if its cache
> load fails, either in memory or from a disk file?

It attempts to load from the original if a cache file is not found, but 
the code currently assumes that cache files will always be good and that 
a failure in them indicates that something really bad is wrong.  You 
could change that pretty easilly, but the problem you're experiencing is 
definitely not normal behavior.

- Perrin