From 4d0d52eda90de56c207f356b7086357c2e5521d0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 2 May 2016 12:13:59 +0100 Subject: [PATCH] Revert "Bug 16104: Remove warnings "used only once: possible typo"" This reverts commit 6b319a2d487257e8a08bc26af9c6b2e7fa2ece2c. Signed-off-by: Marcel de Rooy Tested with memcached and without MEMCACHED_SERVERS. Cache.t, Context.t and sysprefs.t pass now. Signed-off-by: Kyle M Hall --- Koha/Cache.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Cache.pm b/Koha/Cache.pm index 7793f067d0..6f10b00dbf 100644 --- a/Koha/Cache.pm +++ b/Koha/Cache.pm @@ -103,7 +103,7 @@ sub new { # Unless memcache or fastmmap has already been picked, use memory_cache unless ( defined( $self->{'cache'} ) ) { - if ( can_load( modules => { 'Cache::Memory' => undef, nocache => 1 } ) + if ( can_load( modules => { 'Cache::Memory' => undef } ) && _initialize_memory($self) ) { $self->{'cache'} = $self->{'memory_cache'}; -- 2.39.5