From: Max Kanat-Alexander Date: Thu, 18 Mar 2010 13:16:44 +0000 (-0700) Subject: Bug 553255: Make config.cgi use Bugzilla::Product::preload, for a small X-Git-Tag: bugzilla-3.6~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b15a4b96ca25504f936a9dbd202f5925e4cafe4b;p=thirdparty%2Fbugzilla.git Bug 553255: Make config.cgi use Bugzilla::Product::preload, for a small performance improvement r=gerv, a=mkanat --- diff --git a/config.cgi b/config.cgi index 22e1dc78a7..658f04d390 100755 --- a/config.cgi +++ b/config.cgi @@ -35,8 +35,10 @@ use Bugzilla; use Bugzilla::Constants; use Bugzilla::Error; use Bugzilla::Keyword; +use Bugzilla::Product; use Bugzilla::Status; use Bugzilla::Field; + use Digest::MD5 qw(md5_base64); my $user = Bugzilla->login(LOGIN_OPTIONAL); @@ -79,6 +81,8 @@ if ($cgi->param('product')) { $vars->{'products'} = $user->get_selectable_products; } +Bugzilla::Product::preload($vars->{'products'}); + # Create separate lists of open versus resolved statuses. This should really # be made part of the configuration. my @open_status;