From: Byron Jones Date: Wed, 23 Apr 2014 05:11:28 +0000 (+0800) Subject: Bug 993910: Bugzilla/Search/Saved.pm:294 isn't using the cache X-Git-Tag: bugzilla-4.5.5~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e000e51493a832c2630a903779574c3fc7782150;p=thirdparty%2Fbugzilla.git Bug 993910: Bugzilla/Search/Saved.pm:294 isn't using the cache r=gerv, a=glob --- diff --git a/Bugzilla/Search/Saved.pm b/Bugzilla/Search/Saved.pm index 5dfce611ba..2e4c4a3361 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 }); } ############