Skip to content

Commit

Permalink
Bug 993910: Bugzilla/Search/Saved.pm:294 isn't using the cache
Browse files Browse the repository at this point in the history
r=gerv, a=glob
  • Loading branch information
globau committed Apr 23, 2014
1 parent eab44b1 commit e000e51
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Bugzilla/Search/Saved.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

############
Expand Down

0 comments on commit e000e51

Please sign in to comment.