summaryrefslogtreecommitdiffstats
path: root/mod_perl.pl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-11-29 19:03:30 +0100
committermkanat%bugzilla.org <>2007-11-29 19:03:30 +0100
commit5c9cb1c442e10faad5d5234f9c90f2a4529297be (patch)
treed57ae1fbd9fb32c0f4fc82d8b7773c52eed6881a /mod_perl.pl
parent9dfa47cccbf6cf4f98d807c1c61400fc138e18ff (diff)
downloadbugzilla-5c9cb1c442e10faad5d5234f9c90f2a4529297be.tar.gz
bugzilla-5c9cb1c442e10faad5d5234f9c90f2a4529297be.tar.xz
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 <mkanat@bugzilla.org> r=justdave, a=mkanat
Diffstat (limited to 'mod_perl.pl')
-rw-r--r--mod_perl.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/mod_perl.pl b/mod_perl.pl
index f88c398e1..bc22a774f 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") {