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