]> git.koha-community.org Git - koha.git/commit
Bug 16105: Do not initialize the memory cache if not needed
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 18 Mar 2016 13:39:27 +0000 (13:39 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 16 May 2016 10:21:22 +0000 (12:21 +0200)
commit33a3f9df096dd39100d93fdd24a849265c403e4e
tree1a3b558d31ea6262ccd083a0ce460808217a5721
parent353bd0065329d0503f6e9bdf72fedfa96ee8d773
Bug 16105: Do not initialize the memory cache if not needed

Cache::Memory is loaded and Koha::Cache::_initialize_memory is called
even if a memcached cache has been correctly initialize, it does not
make sense.
It should only be initialize if needed.

Test plan:
Correctly configure a memcache server and confirm that the memory cache
is not initialize.
Do not configure correctly a memcache server and confirm that the cache
system default on Cache::Memory

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 2026be47fd79fb15f1e9fb83be34403e8eb18079)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Koha/Cache.pm