Bug 17261: The default memcached namespace is "koha"
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 8 Sep 2016 08:24:00 +0000 (09:24 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 2 Nov 2016 10:55:24 +0000 (10:55 +0000)
If no namespace is defined in ENV or the config, "koha" is used as the
default memcached namespace (See Koha::Cache->new)

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

about.pl

index a8e836f..c489515 100755 (executable)
--- a/about.pl
+++ b/about.pl
@@ -72,8 +72,8 @@ if ( any { /(^psgi\.|^plack\.)/i } keys %ENV ) {
 }
 
 # Memcached configuration
-my $memcached_servers   = $ENV{MEMCACHED_SERVERS} // C4::Context->config('memcached_servers');
-my $memcached_namespace = $ENV{MEMCACHED_NAMESPACE} // C4::Context->config('memcached_namespace');
+my $memcached_servers   = $ENV{MEMCACHED_SERVERS} || C4::Context->config('memcached_servers');
+my $memcached_namespace = $ENV{MEMCACHED_NAMESPACE} || C4::Context->config('memcached_namespace') // 'koha';
 
 my $effective_caching_method = ref(Koha::Caches->get_instance->cache);