[prev] [thread] [next] [Date index for 2004/12/29]
Hi,
I have made a site that uses Template-Toolkit and mod_perl.
I have loaded the Template module in a startup.pl program which is called by
a "PerlRequire" line in httpd.conf.
All works fine, but...
I need to print a list of links to other pages from my site, sorted in order
of hits on those pages, so the order of the elements of this list could
change on each page refresh.
In each link I print the number of hits, and this number of hits appear
correctly, but the order of the list is not a correct one. However, if I
restart the web server then I refresh the page, the order is shown
correctly.
The sort of the list is made using a
[% FOREACH hash = art.hash %]
that need to sort the array @{$art->{art}->{hash}}...
The reference $art is returned from a module and it is sent to the template
with:
$vars => {
art => $art,
};
I don't know if this issue is more a Template-Toolkit one or a mod_perl
problem, but do you have any idea what can I do to not allow mod_perl cache
the array that should have a different order on each page refresh?
In the module, I have included that array in the $art like this:
$art->{hash} = \@hash;
Is there any other method for doing this in order not to be cached?
Thank you very much for any light in this problem.
Teddy
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
|
[Templates] Templates and mod_perl
|
Generated at 08:56 on 15 Mar 2005 by mariachi v0.52