aboutsummaryrefslogtreecommitdiffstats
path: root/config.cgi
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-18 06:15:42 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-03-18 06:15:42 -0700
commitbec7e429a56f4ff744df2726192683363a8d2835 (patch)
treea125e68bff04cbc924565425e9cafa9d0a9be969 /config.cgi
parentd0b17e984b42fea65eb4e8ecfd586e958507cb2c (diff)
downloadbugs-bec7e429a56f4ff744df2726192683363a8d2835.tar
bugs-bec7e429a56f4ff744df2726192683363a8d2835.tar.gz
bugs-bec7e429a56f4ff744df2726192683363a8d2835.tar.bz2
bugs-bec7e429a56f4ff744df2726192683363a8d2835.tar.xz
bugs-bec7e429a56f4ff744df2726192683363a8d2835.zip
Bug 553255: Make config.cgi use Bugzilla::Product::preload, for a small
performance improvement r=gerv, a=mkanat
Diffstat (limited to 'config.cgi')
-rwxr-xr-xconfig.cgi4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.cgi b/config.cgi
index 22e1dc78a..658f04d39 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;