From 616831b6c6d05283cef53211d4cf6800c20325e7 Mon Sep 17 00:00:00 2001 From: Mary Umoh Date: Wed, 5 Jul 2017 20:42:01 -0400 Subject: Bug 1377807 - Move memcached options from data/params to localconfig --- Bugzilla/Install/Localconfig.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Bugzilla/Install') diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm index a366353bc..4fb15a1c2 100644 --- a/Bugzilla/Install/Localconfig.pm +++ b/Bugzilla/Install/Localconfig.pm @@ -43,6 +43,14 @@ sub _sensible_group { return scalar getgrgid($EGID); } +sub _migrate_param { + my ($name, $fallback_value) = @_; + + return sub { + return Bugzilla->params->{$name} // $fallback_value; + }; +} + use constant LOCALCONFIG_VARS => ( { name => 'create_htaccess', @@ -126,6 +134,14 @@ use constant LOCALCONFIG_VARS => ( name => 'apache_size_limit', default => 600000, }, + { + name => 'memcached_servers', + default => _migrate_param("memcached_servers", ""), + }, + { + name => 'memcached_namespace', + default => _migrate_param("memcached_namespace", "bugzilla:"), + }, ); sub read_localconfig { -- cgit v1.2.3-24-g4f1b