Bug 16044: Add deep cloning
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 15 Mar 2016 16:17:32 +0000 (16:17 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 24 Mar 2016 19:44:44 +0000 (19:44 +0000)
commit2e0af6e6df279aa08603e9696d35fc7def7bd7d3
treebb2dd0fea4e0023a051abb6a60700f38fecab278
parent3bfe541d0d97cdad08f9be2cff20c04a03424a25
 Bug 16044: Add deep cloning

To avoid the cache to be modified unfortunately, the default behavior of
get_from_cache will be to deep copy if we are getting a structure.
If the item is a scalar, it's simply returned.

Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
Koha/Cache.pm