Bug 17261: The default memcached namespace is "koha"

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>
This commit is contained in:
Jonathan Druart 2016-09-08 09:24:00 +01:00 committed by Kyle M Hall
parent 0dfefe73f5
commit 605abeb08a
1 changed files with 2 additions and 2 deletions

View File

@ -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);