Bug 17833: Make sure this warning will not be ignored
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Jan 2018 17:02:45 +0000 (14:02 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 9 Jan 2018 20:23:49 +0000 (17:23 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Cache.pm

index 5bab842..be478fa 100644 (file)
@@ -142,8 +142,8 @@ sub _initialize_memcached {
 
     # Ensure we can actually talk to the memcached server
     my $ismemcached = $memcached->set('ismemcached','1');
-    unless ($ismemcached) { #Value is undefined or False, so there was an error with the server, the connection to it, or a protocol error
-        warn "Connection to the memcached servers '@servers' failed. Are the unix socket permissions set properly? Is the host reachable?";
+    unless ($ismemcached) {
+        warn "\nConnection to the memcached servers '@servers' failed. Are the unix socket permissions set properly? Is the host reachable?\nIf you ignore this warning, you will face performance issues\n";
         return $self;
     }
     $self->{'memcached_cache'} = $memcached;