]> git.koha-community.org Git - koha.git/commit
Bug 16229: Deep copy on first L2 fetch
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 8 Apr 2016 12:08:55 +0000 (13:08 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 23 Jun 2016 07:22:34 +0000 (09:22 +0200)
commit6599ae3ddc2340ef050046e3162e6ca48a2e7802
treed39b18d5b9e6c3827c4bd8489c8bf9a899c729b9
parentc4be9951a7c15a12ba4901c2632681cec8e68978
Bug 16229: Deep copy on first L2 fetch

When a value exists in L2 cache but not in L1 cache, it should be deep
copied if needed (i.e. not a scalar). Otherwise the calling code is able
to modify the value in cache.
Note that is theoretical, it's possible that no code does that.

Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
(cherry picked from commit 956dc953b52a1fd525bc75682bbdfe6848683ace)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Koha/Cache.pm
t/Cache.t