summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Comment.pm
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-12-19 09:56:47 +0100
committerByron Jones <bjones@mozilla.com>2012-12-19 09:56:47 +0100
commit387608caac85ccf6c0782572420ecbdae4e301bf (patch)
treea047006cbf485bb714dea61b39731e28a1366fca /Bugzilla/Comment.pm
parente068bcc76fe842fbcac8249ed29593f8a17b0c24 (diff)
downloadbugzilla-387608caac85ccf6c0782572420ecbdae4e301bf.tar.gz
bugzilla-387608caac85ccf6c0782572420ecbdae4e301bf.tar.xz
Bug 815532: Add caching for Bugzilla::User objects
r=dkl,a=LpSolit
Diffstat (limited to 'Bugzilla/Comment.pm')
-rw-r--r--Bugzilla/Comment.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Comment.pm b/Bugzilla/Comment.pm
index caefb2d6d..0277819c4 100644
--- a/Bugzilla/Comment.pm
+++ b/Bugzilla/Comment.pm
@@ -137,7 +137,8 @@ sub attachment {
sub author {
my $self = shift;
- $self->{'author'} ||= new Bugzilla::User($self->{'who'});
+ $self->{'author'}
+ ||= new Bugzilla::User({ id => $self->{'who'}, cache => 1 });
return $self->{'author'};
}