From 387608caac85ccf6c0782572420ecbdae4e301bf Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 19 Dec 2012 16:56:47 +0800 Subject: Bug 815532: Add caching for Bugzilla::User objects r=dkl,a=LpSolit --- Bugzilla/Comment.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Comment.pm') 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'}; } -- cgit v1.2.3-24-g4f1b