After a bit of testing it seems to me that a cached template will be
recompiled if the file that it is based on changes on disk. Is there
a stat going on somewhere? And if so is it possible to turn this off in
production systems?
The badger seemed to indicate I am wrong, which is why I'm asking :)
The caching lasts for the lifetime of the Perl Template object being
used. (p. 83)
My test was this:
#!/usr/bin/perl
use Template;
my $template = Template->new();
while ( 1 ) {
$template->process( 'tt-cache.tt' );
sleep( 2 );
}
Which I ran in one window, while in another window i modified the template
file, and so the changes take effect.
//Ed
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates