On 5/10/07, Travis Basevi <[EMAIL PROTECTED]> wrote:
Ignoring the task of fixing the faults (and faulty people) in our setup, is there a reason why the .ttc version only updates if the .tt2 has a newer mtime? As far as I can tell, the guilty code is the following in Provider.pm,v 2.88:if ($compiled && -f $compiled && (stat($path))[9] <= (stat($compiled))[9]) { Assuming the .ttc is always set to the mtime of the .tt2 (can't find the code that does this, but observations suggest this), could the <= instead be changed to == thus ensuring the compiled version has to match (or at least have the same mtime) as the tt2 file?
Would that help, though? The timestamps being equal seems like an unlikely case. I think in your situation the derived file would be newer than the template. How about an option to disable the timestamp check and unconditionally do the conversion? _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
