Revert "Bug 16104: Remove warnings "used only once: possible typo""
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 2 May 2016 11:13:59 +0000 (12:13 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 2 May 2016 15:28:27 +0000 (15:28 +0000)
This reverts commit 6b319a2d487257e8a08bc26af9c6b2e7fa2ece2c.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested with memcached and without MEMCACHED_SERVERS.
Cache.t, Context.t and sysprefs.t pass now.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Cache.pm

index 7793f06..6f10b00 100644 (file)
@@ -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'};