]> git.koha-community.org Git - koha.git/commit
Bug 16044: Add an unsafe flag to Koha::Cache->get_from_cache
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 15 Mar 2016 16:40:14 +0000 (16:40 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 16 Jun 2016 11:44:43 +0000 (13:44 +0200)
commitbc2a946f7c331b3535c1a5c6a31534b4ca8aa7fd
tree9b457f21b1ccb992d0bbb1901fa0dd2c007f6631
parentacb6f4ba41df93dccc3a715b74f12d866e97c890
Bug 16044: Add an unsafe flag to Koha::Cache->get_from_cache

If the caller/developer knows what he is doing, he can decide not to
deep copy the structure. It will be faster but unsafe!
If the structure is modified, the cache will also be updated.
This option must be used with care and is not the default behavior.

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>
(cherry picked from commit b0bbace4dd8c19488110bf5c06817077abaa3f1c)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Koha/Cache.pm
t/Cache.t