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)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Fri, 29 Apr 2016 02:50:36 +0000 (02:50 +0000)
commit2026be47fd79fb15f1e9fb83be34403e8eb18079
tree315b5dbccdb7a570a9337609095bdb0a360fb82b
parentef97b6b301a5c1a9ef5c63cc93933bf7442513fc
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>
Koha/Cache.pm