From 1c5e0c47c92128afebef5614407d84cd72c12b35 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 28 Nov 2012 16:40:21 +0800 Subject: Bug 814411: Add a caching mechanism to Bugzilla::Object to avoid querying the database repeatedly for the same information --- extensions/InlineHistory/Extension.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions/InlineHistory') diff --git a/extensions/InlineHistory/Extension.pm b/extensions/InlineHistory/Extension.pm index 2e388994a..f761a9fbd 100644 --- a/extensions/InlineHistory/Extension.pm +++ b/extensions/InlineHistory/Extension.pm @@ -92,7 +92,7 @@ sub template_before_process { my $field_obj; if ($change->{fieldname} =~ /^cf_/) { - $field_obj = Bugzilla::Field->new({ name => $change->{fieldname} }); + $field_obj = Bugzilla::Field->new({ name => $change->{fieldname}, cache => 1 }); } # identify buglist changes -- cgit v1.2.3-24-g4f1b