]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 398241: mod_perl wasn't using our precompiled CGIs. This is a huge performance...
authormkanat%bugzilla.org <>
Thu, 29 Nov 2007 18:03:30 +0000 (18:03 +0000)
committermkanat%bugzilla.org <>
Thu, 29 Nov 2007 18:03:30 +0000 (18:03 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat

mod_perl.pl

index f88c398e1af908624de80362939cb9a4197fea6c..bc22a774f0615deffedf824285a84013e8312908 100644 (file)
@@ -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") {