perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Silva <>
Subject Weird CGI Caching problem
Date Wed, 07 Apr 2004 21:03:46 GMT
I'm having a problem with Mod_perl 2.0 that I cannot seem to find any 
help on.

I found some help on Mod Perl's caching 
and tested some of his scripts.  I was having some problems in some of 
my conversions, so I decided to modify his scripts to see if the problem 
   use CGI;
   my $counter;
   my $cgi;
   sub run{
     print "Content-type: text/plain\r\n\r\n";
	print "HERE";
	$counter = 0;
     for (1..5) {

   sub increment_counter{
	my $str=$cgi->param("name");
     print "Name=$str Counter is equal to $counter !\r\n";
   use strict;
   require "./";

 From a browser, I've passed in some name and then have tried changing 
it.  It seems as though Apache2 is keeping the CGI parameters cached in 
memory for every run.  My question is, how do I make sure I get the 
latest CGI object from Apache?  As you can see, I've tried changing the 
cgi parameter to null (and everything else).


Report problems:
Mail list info:
List etiquette:

View raw message