summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Memcached.pm
diff options
context:
space:
mode:
authorMary Umoh <umohm12@gmail.com>2017-07-06 02:42:01 +0200
committerDylan William Hardison <dylan@hardison.net>2017-07-07 00:19:34 +0200
commit616831b6c6d05283cef53211d4cf6800c20325e7 (patch)
treedfd7ce2c990dcb18add29c9d61d43c565ef8db60 /Bugzilla/Memcached.pm
parent6f06744ccc95232300ee53ead82166e60c84351c (diff)
downloadbugzilla-616831b6c6d05283cef53211d4cf6800c20325e7.tar.gz
bugzilla-616831b6c6d05283cef53211d4cf6800c20325e7.tar.xz
Bug 1377807 - Move memcached options from data/params to localconfig
Diffstat (limited to 'Bugzilla/Memcached.pm')
-rw-r--r--Bugzilla/Memcached.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/Bugzilla/Memcached.pm b/Bugzilla/Memcached.pm
index 37b158ad5..233db31f2 100644
--- a/Bugzilla/Memcached.pm
+++ b/Bugzilla/Memcached.pm
@@ -30,9 +30,9 @@ sub _new {
# always return an object to simplify calling code when memcached is
# disabled.
- my $servers = Bugzilla->get_param_with_override('memcached_servers');
+ my $servers = Bugzilla->localconfig->{memcached_servers};
if (Bugzilla->feature('memcached') && $servers) {
- $self->{namespace} = Bugzilla->get_param_with_override('memcached_namespace');
+ $self->{namespace} = Bugzilla->localconfig->{memcached_namespace};
$self->{memcached} = Cache::Memcached::Fast->new({
servers => [ split(/[, ]+/, $servers) ],
namespace => $self->{namespace},
@@ -462,4 +462,3 @@ Memcached that it then clears the cache:
$dbh->do("UPDATE profiles SET last_activity_ts=? WHERE userid=?",
undef, $timestamp, $user_id);
Bugzilla->memcached->clear({ table => 'profiles', id => $user_id });
-