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
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
Sorry if this has been mentioned before or I'm teaching you to suck eggs,
but if you are running an old CGI script in mod_perl you need to not scope
with 'my'.
See
http://perl.apache.org/docs/general/perl_reference/perl_reference.html#my___
_Scoped_Variable_in_Nested_Subroutines
This
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.
Sorry if this has been mentioned before or I'm teaching you to suck eggs,
but if you are running an old CGI script in mod_perl you
On 10/4/07, Ian G. Tyndall [EMAIL PROTECTED] 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
Ian G. Tyndall wrote:
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.
if that didn't work then you might be experiencing variable sharing
problems,
This is not a global rule: do not use 'my' for any
variables. You should still use 'my' for most variables.
Exactly, a poor description by me :(
Iain.
Thanks guys! Look like I got alot of scripts to change!
-Original Message-
From: iain hubbard [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007 11:06 AM
To: modperl@perl.apache.org
Subject: RE: Turning off caching
This is not a global rule: do not use 'my' for any variables