From bc6646431c3ece41535d830e1d37cc2b91a7cfa2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 8 Apr 2016 13:37:46 +0100 Subject: [PATCH] Bug 16221: follow-up for changes made by bug 16229 Signed-off-by: Jonathan Druart --- Koha/Cache.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Cache.pm b/Koha/Cache.pm index 3d996d8..9a1d3e5 100644 --- a/Koha/Cache.pm +++ b/Koha/Cache.pm @@ -283,7 +283,7 @@ sub set_in_cache { my $set_sub = $self->{ref($self->{$cache}) . "_set"}; # Deep copy if it's not a scalar and unsafe is not passed - $value = clone( $value ) if ref($value) and not $unsafe; + $value = dclone( $value ) if ref($value) and not $unsafe; # Set in L1 cache $L1_cache{ $key } = $value; @@ -352,7 +352,7 @@ sub get_from_cache { # Otherwise the L1 cache won't ever be populated $L1_cache{$key} = $value; - $value = clone $value if ref $L1_cache{$key} and not $unsafe; + $value = dclone $value if ref $L1_cache{$key} and not $unsafe; return $value; } -- 2.7.0