From 631aa53bca0af70208ca5ed1e089b84405d3ac89 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 15 Apr 2016 09:21:41 +0100 Subject: [PATCH] Bug 16105: [DO NOT PUSH] warn to test the patch Test plan: Apply this patch Notice the 2 warnings: init memcached init memory in the log Apply the second patch "Do not initialize the memory cache if not needed" Notice the single warning: init memcached --- Koha/Cache.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Koha/Cache.pm b/Koha/Cache.pm index 0b203c0..18a2bc7 100644 --- a/Koha/Cache.pm +++ b/Koha/Cache.pm @@ -119,6 +119,7 @@ sub new { sub _initialize_memcached { my ($self) = @_; + warn "INIT memcached"; my @servers = split /,/, $self->{'cache_servers'} ? $self->{'cache_servers'} @@ -149,6 +150,7 @@ sub _initialize_memcached { sub _initialize_fastmmap { my ($self) = @_; + warn "INIT fastmmap"; my ($cache, $share_file); # Temporary workaround to catch fatal errors when: C4::Context module @@ -176,6 +178,7 @@ sub _initialize_fastmmap { sub _initialize_memory { my ($self) = @_; + warn "INIT memory"; # Default cache time for memory is _always_ short unless it's specially # defined, to allow it to work reliably in a persistent environment. -- 2.7.0