From e000e51493a832c2630a903779574c3fc7782150 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 23 Apr 2014 13:11:28 +0800 Subject: Bug 993910: Bugzilla/Search/Saved.pm:294 isn't using the cache r=gerv, a=glob --- Bugzilla/Search/Saved.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Search/Saved.pm b/Bugzilla/Search/Saved.pm index 5dfce611b..2e4c4a336 100644 --- a/Bugzilla/Search/Saved.pm +++ b/Bugzilla/Search/Saved.pm @@ -290,9 +290,8 @@ sub url { return $_[0]->{'query'}; } sub user { my ($self) = @_; - return $self->{user} if defined $self->{user}; - $self->{user} = new Bugzilla::User($self->{userid}); - return $self->{user}; + return $self->{user} ||= + Bugzilla::User->new({ id => $self->{userid}, cache => 1 }); } ############ -- cgit v1.2.1