Commit b5b5061c authored by Byron Jones's avatar Byron Jones

Bug 993939: Bugzilla::User::Setting::groups() should use memcached

parent 6d730fae
......@@ -166,11 +166,11 @@ sub clear_all {
sub clear_config {
my ($self, $args) = @_;
return unless $self->{memcached};
if ($args && exists $args->{key}) {
$self->_delete($self->_config_prefix . '.' . $args->{key});
}
else {
return unless $self->{memcached};
$self->_inc_prefix("config");
}
}
......
......@@ -668,8 +668,8 @@ sub flush_queries_cache {
sub groups {
my $self = shift;
return [] unless $self->id;
return $self->{groups} if defined $self->{groups};
return [] unless $self->id;
my $user_groups_key = "user_groups." . $self->id;
my $groups = Bugzilla->memcached->get_config({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment