diff options
author | Byron Jones <bjones@mozilla.com> | 2012-11-28 09:40:21 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-11-28 09:40:21 +0100 |
commit | 1c5e0c47c92128afebef5614407d84cd72c12b35 (patch) | |
tree | fb192713a69dd8a61774f2fdb308a200d9a4e403 /extensions/Splinter/Extension.pm | |
parent | 4096dc51aadfa8344ae649c477827721a4c398ab (diff) | |
download | bugzilla-1c5e0c47c92128afebef5614407d84cd72c12b35.tar.gz bugzilla-1c5e0c47c92128afebef5614407d84cd72c12b35.tar.xz |
Bug 814411: Add a caching mechanism to Bugzilla::Object to avoid querying the database repeatedly for the same information
Diffstat (limited to 'extensions/Splinter/Extension.pm')
-rw-r--r-- | extensions/Splinter/Extension.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Splinter/Extension.pm b/extensions/Splinter/Extension.pm index 9c8be4beb..980ab0054 100644 --- a/extensions/Splinter/Extension.pm +++ b/extensions/Splinter/Extension.pm @@ -36,7 +36,7 @@ sub page_before_template { if ($input->{'bug'}) { $vars->{'bug_id'} = $input->{'bug'}; $vars->{'attach_id'} = $input->{'attachment'}; - $vars->{'bug'} = Bugzilla::Bug->check($input->{'bug'}); + $vars->{'bug'} = Bugzilla::Bug->check({ id => $input->{'bug'}, cache => 1 }); } if ($input->{'attachment'}) { |