From: mkanat%bugzilla.org <> Date: Thu, 29 Nov 2007 18:03:30 +0000 (+0000) Subject: Bug 398241: mod_perl wasn't using our precompiled CGIs. This is a huge performance... X-Git-Tag: bugzilla-3.1.3~452 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c9cb1c442e10faad5d5234f9c90f2a4529297be;p=thirdparty%2Fbugzilla.git 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 --- diff --git a/mod_perl.pl b/mod_perl.pl index f88c398e1a..bc22a774f0 100644 --- a/mod_perl.pl +++ b/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") {