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

trunk
Byron Jones 2014-05-28 14:36:41 +08:00 committed by Sync
parent e25cb3b449
commit 93611337f4
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
6d730fae2211b9319037b7cb0515351fa529e78c
b5b5061ca90acd1e65fc5e2073dedf721117e553

View File

@ -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");
}
}

View File

@ -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({