From fb85e2ee8fc510a607f60525f8c3b3978a9789df Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 20 Oct 2010 02:27:59 +0200 Subject: Bug 553266: config.cgi?ctype=rdf spends most of its time loading flagtypes from the database a=LpSolit (module owner) --- config.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.cgi') diff --git a/config.cgi b/config.cgi index d52c6b6c1..2c82fdc59 100755 --- a/config.cgi +++ b/config.cgi @@ -81,7 +81,8 @@ if ($cgi->param('product')) { $vars->{'products'} = $user->get_selectable_products; } -Bugzilla::Product::preload($vars->{'products'}); +# We set the 2nd argument to 1 to also preload flag types. +Bugzilla::Product::preload($vars->{'products'}, 1); # Allow consumers to specify whether or not they want flag data. if (defined $cgi->param('flags')) { -- cgit v1.2.3-24-g4f1b