Thanks for the quick responses!

For argument sake, I went ahead and added the following to the top of
one of the problem scripts:

 my $r = shift;
$r->no_cache(1);

And it didn't fix it.

Geoffrey:
I tried the mod_expires with : access 1 seconds
That didn't work either... thanks though.

Adam:
I'm looking into that perlinithandler right now, thanks for the
recommendation.

-----Original Message-----
From: Adam Prime x443 [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2007 10:07 AM
To: Geoffrey Young; Ian G. Tyndall
Cc: modperl@perl.apache.org
Subject: RE: Turning off caching

You can't use it in startup.pl or httpd.conf, but you could create a
PerlInitHandler that runs for the whole site (or part of it) and use it
in there.  At least that's another option.

Adam

-----Original Message-----
From: Geoffrey Young [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 9:47 AM
To: Ian G. Tyndall
Cc: modperl@perl.apache.org
Subject: Re: Turning off caching



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

Reply via email to