diff options
author | Mary Umoh <umohm12@gmail.com> | 2017-07-06 02:42:01 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-07-07 00:19:34 +0200 |
commit | 616831b6c6d05283cef53211d4cf6800c20325e7 (patch) | |
tree | dfd7ce2c990dcb18add29c9d61d43c565ef8db60 /Bugzilla/Install | |
parent | 6f06744ccc95232300ee53ead82166e60c84351c (diff) | |
download | bugzilla-616831b6c6d05283cef53211d4cf6800c20325e7.tar.gz bugzilla-616831b6c6d05283cef53211d4cf6800c20325e7.tar.xz |
Bug 1377807 - Move memcached options from data/params to localconfig
Diffstat (limited to 'Bugzilla/Install')
-rw-r--r-- | Bugzilla/Install/Localconfig.pm | 16 |
1 files changed, 16 insertions, 0 deletions
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 { |