diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-07-31 19:54:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 19:54:12 +0200 |
commit | e1b3729da40453f33a836eb75c8990cb4a42a634 (patch) | |
tree | c052bbfee879693e1fb879976863d84d2ff9c88a /mod_perl.pl | |
parent | d133f849672bdd7ad1b22e2ffc327fc65c2b95e8 (diff) | |
download | bugzilla-e1b3729da40453f33a836eb75c8990cb4a42a634.tar.gz bugzilla-e1b3729da40453f33a836eb75c8990cb4a42a634.tar.xz |
Bug 1320977 - performance tweaks
Diffstat (limited to 'mod_perl.pl')
-rw-r--r-- | mod_perl.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mod_perl.pl b/mod_perl.pl index aeadd6f35..09e3bac38 100644 --- a/mod_perl.pl +++ b/mod_perl.pl @@ -67,6 +67,9 @@ use Bugzilla::Install::Requirements (); use Bugzilla::Util (); use Bugzilla::RNG (); use Bugzilla::ModPerl (); +use Mojo::Loader qw(find_modules); +use Module::Runtime qw(require_module); +use Bugzilla::WebService::Server::REST; # Make warnings go to the virtual host's log and not the main # server log. @@ -103,6 +106,10 @@ Bugzilla::Extension->load_all(); Bugzilla->preload_features(); +require_module($_) for find_modules('Bugzilla::User::Setting'); + +Bugzilla::WebService::Server::REST->preload; + # Force instantiation of template so Bugzilla::Template::PreloadProvider can do its magic. Bugzilla->preload_templates; |