]> 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)
committerBrendan Gallagher <bredan@bywatersolutions.com>
Wed, 20 Apr 2016 17:17:19 +0000 (17:17 +0000)
commit956dc953b52a1fd525bc75682bbdfe6848683ace
tree557e7cf6754a532ec10fa3836c9404d51e70224e
parent8ec54c86feb92989807837d71f4c0a5e901e07e3
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>
Koha/Cache.pm
t/Cache.t