perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: Turning off caching
Date Thu, 04 Oct 2007 13:46:52 GMT


Ian G. Tyndall wrote:
> I've got an existing cgi project that I was hoping to get some
> performance improvements from mod_perl. Everything was going great until
> I ran into a caching issue. The script repeatedly performs the last
> action given regardless of the paramaters passed in.
> 
> I've seen this:
> 
> $r->nocache(1);
> 
> But, how can I use it in my startup.pl or in my httpd.conf?

you can't - the $r means it's a per-request thing, not a
lifetime-of-the-server thing

> If I can't do it in the startup.pl, or the conf file, I would welcome
> any other recommendations.

see mod_expires:

  http://httpd.apache.org/docs/2.0/mod/mod_expires.html

HTH

--Geoff

Mime
View raw message