Gossamer Forum
Home : Products : Gossamer Links : Discussions :

<%include file%> and mod_perl

Quote Reply
<%include file%> and mod_perl
 
Hi!,
I use the tag <%include news.txt%> to insert news headlines on my site. The news.txt file is frequently updated by cron jobs.

But when surfing my site people get different versions of the "news.txt" file. I use page.cgi and mod_perl, is the text file cached, if so can this be turned off for a specific file?



Sincerely,

Wilhelm Eilertsen
RadioDirectory.com



Quote Reply
Re: <%include file%> and mod_perl In reply to
Hi,

Edit GT/Template.pm and change:

cache => 1

to:

cache => 0

in the ATTRIBS hash at the top. However, it should detect when includes change and reload them. Let me know if that fixes things.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: <%include file%> and mod_perl In reply to
 
Hi,

That made the trick!


Sincerely,

Wilhelm Eilertsen
RadioDirectory.com