T
tszming
Hello,
I have complied my apache (1.3.41) to use mod_perl, and in the
httpd.conf I added the following:
<Location /cgi-bin/>
PerlModule Apache:
BI
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Location>
I was able to run the perl script, but seems mod_perl never cache my
modules?
E.g.
TestModPerl.pm
==============================
use strict;
package TestModPerl;
sub new {
my ($class) = @_;
my $self = {
name => "foo"
};
bless $self, $class;
return $self;
}
1;
test.cgi
==============================
#!/usr/bin/perl
use lib "./../lib/";
use TestModPerl;
print "Content-type:text/html\n\n";
$t = new TestModPerl();
print $t->{"name"};
-------------------------------
After started Apache, even if I modify the TestModPerl.pm by editing
the name, the change is done realtime.
So how does mod_perl module caching work?
Best Regard,
Howa
I have complied my apache (1.3.41) to use mod_perl, and in the
httpd.conf I added the following:
<Location /cgi-bin/>
PerlModule Apache:
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Location>
I was able to run the perl script, but seems mod_perl never cache my
modules?
E.g.
TestModPerl.pm
==============================
use strict;
package TestModPerl;
sub new {
my ($class) = @_;
my $self = {
name => "foo"
};
bless $self, $class;
return $self;
}
1;
test.cgi
==============================
#!/usr/bin/perl
use lib "./../lib/";
use TestModPerl;
print "Content-type:text/html\n\n";
$t = new TestModPerl();
print $t->{"name"};
-------------------------------
After started Apache, even if I modify the TestModPerl.pm by editing
the name, the change is done realtime.
So how does mod_perl module caching work?
Best Regard,
Howa