Bug 993939: Bugzilla::User::Setting::groups() should use memcached
git-svn-id: svn://10.0.0.236/trunk@265412 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7ee57a38d7
commit
28a2cb1e01
@ -1 +1 @@
|
|||||||
9040
|
9041
|
||||||
@ -1 +1 @@
|
|||||||
6d730fae2211b9319037b7cb0515351fa529e78c
|
b5b5061ca90acd1e65fc5e2073dedf721117e553
|
||||||
@ -166,11 +166,11 @@ sub clear_all {
|
|||||||
|
|
||||||
sub clear_config {
|
sub clear_config {
|
||||||
my ($self, $args) = @_;
|
my ($self, $args) = @_;
|
||||||
|
return unless $self->{memcached};
|
||||||
if ($args && exists $args->{key}) {
|
if ($args && exists $args->{key}) {
|
||||||
$self->_delete($self->_config_prefix . '.' . $args->{key});
|
$self->_delete($self->_config_prefix . '.' . $args->{key});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return unless $self->{memcached};
|
|
||||||
$self->_inc_prefix("config");
|
$self->_inc_prefix("config");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -668,8 +668,8 @@ sub flush_queries_cache {
|
|||||||
sub groups {
|
sub groups {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
return [] unless $self->id;
|
|
||||||
return $self->{groups} if defined $self->{groups};
|
return $self->{groups} if defined $self->{groups};
|
||||||
|
return [] unless $self->id;
|
||||||
|
|
||||||
my $user_groups_key = "user_groups." . $self->id;
|
my $user_groups_key = "user_groups." . $self->id;
|
||||||
my $groups = Bugzilla->memcached->get_config({
|
my $groups = Bugzilla->memcached->get_config({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user