From 942121f45bfc985cc1c52d8051add7036eed8394 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"" Content-Type: text/plain; charset=utf-8 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. --- Koha/Cache.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Cache.pm b/Koha/Cache.pm index 7793f06..6f10b00 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'}; -- 1.7.10.4