]> 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)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 24 Mar 2016 19:44:45 +0000 (19:44 +0000)
commitb0bbace4dd8c19488110bf5c06817077abaa3f1c
tree1365a04ab1565f94f149f502399c8d8f328a15c9
parent2e0af6e6df279aa08603e9696d35fc7def7bd7d3
 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>
Koha/Cache.pm
t/Cache.t