Turning off caching

2007-10-04 Thread Ian G. Tyndall
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,

RE: Turning off caching

2007-10-04 Thread Adam Prime x443
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

RE: Turning off caching

2007-10-04 Thread Ian G. Tyndall
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

RE: Turning off caching

2007-10-04 Thread Clinton Gormley
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

RE: Turning off caching

2007-10-04 Thread iain hubbard
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

Re: Turning off caching

2007-10-04 Thread Perrin Harkins
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

Re: Turning off caching

2007-10-04 Thread Geoffrey Young
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,

RE: Turning off caching

2007-10-04 Thread iain hubbard
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.

RE: Turning off caching

2007-10-04 Thread Ian G. Tyndall
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