From f34445c8e38b63a1ae52efeb06450a88dd84e5d7 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. --- 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'}; -- 2.7.0