Hello,
I've written a mod_perl handler in apache using the template-toolkit.
everthing seems to work fine..
However when I do something like this:
myperlfile.pl
my $vars = { globaldata => \%GlobalData,
tasks => \%Tasks,
problems => \%Problems};
$GlobalData{querydata}{date} = `date`;
my $tt = Template->new(
{
INCLUDE_PATH => 'templates',
TRIM => 1,
CACHE_SIZE => 0,
OUTPUT => $r
}) || $log->error("$Template::ERROR\n");
$tt->process('test.tpl', $vars)
|| $log->error("$tt->error()");
test.tpl
<html>.
.
.
Query date : [% globaldata.querydata.date %]
.
.
</html>
What I notice that unless I touch my perl script every the time (mod_perl
will "recompile" it) the date om my web-page doen't change. (after a few
requests.... probably the number of apache childs)
I've played a bit with caching etc, but the only thing that seems to work
is: `touch myperlfile.pl` and this i of course not very nice.
Any ideas what I could do to make it work without a touch ???
Regards,
> Jurriaan van der Laan
>