From 55cdfd2da3fae609643a16d40af6905f867dead2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 7 Sep 2016 11:43:32 +0100 Subject: [PATCH] Bug 17189: Use delete to flush a L1 cache namespace Signed-off-by: Jacek Ablewicz Signed-off-by: Tomas Cohen Arazi https://bugs.koha-community.org/show_bug.cgi?id=11921 Signed-off-by: Kyle M Hall --- Koha/Cache.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Cache.pm b/Koha/Cache.pm index 598c35be39..ea2ebcb529 100644 --- a/Koha/Cache.pm +++ b/Koha/Cache.pm @@ -403,7 +403,7 @@ sub flush_all { sub flush_L1_cache { my( $self ) = @_; - $L1_cache{$self->{namespace}} = (); + delete $L1_cache{$self->{namespace}}; } =head1 TIED INTERFACE -- 2.39.5