From 456928d818ac309ae5e992a2a037a40f0869f5c1 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Thu, 29 Nov 2007 12:03:30 +0000 Subject: [PATCH] Bug 398241: mod_perl wasn't using our precompiled CGIs. This is a huge performance and memory improvement for mod_perl Bugzilla users. Patch By Max Kanat-Alexander r=justdave, a=mkanat --- webtools/bugzilla/mod_perl.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webtools/bugzilla/mod_perl.pl b/webtools/bugzilla/mod_perl.pl index f88c398e1af..bc22a774f06 100644 --- a/webtools/bugzilla/mod_perl.pl +++ b/webtools/bugzilla/mod_perl.pl @@ -71,6 +71,9 @@ $server->add_config([split("\n", $conf)]); # Have ModPerl::RegistryLoader pre-compile all CGI scripts. my $rl = new ModPerl::RegistryLoader(); +# If we try to do this in "new" it fails because it looks for a +# Bugzilla/ModPerl/ResponseHandler.pm +$rl->{package} = 'Bugzilla::ModPerl::ResponseHandler'; # Note that $cgi_path will be wrong if somebody puts the libraries # in a different place than the CGIs. foreach my $file (glob "$cgi_path/*.cgi") {