[Koha-bugs] [Bug 18232] Koha::Cache::flush - Simply flush all caches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 24 15:50:23 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18232

--- Comment #4 from Olli-Antti Kivilahti <olli-antti.kivilahti at jns.fi> ---
Created attachment 68468
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=68468&action=edit
Bug 18232 - Koha::Cache::flush - Simply flush all caches - Squashable1, fix
pesky syspref cache issue

After flushing Koha::Caches this flush() also removed the references to the
singleton caches, forcing
reinstating the cache connection.

C4::Context had a hard-coded package variable referencing to the sysprefs
cache.
After flushing for the first time, the reference to the syspref cache was
severed for Koha::Caches,
but not to the C4::Context syspref cache,
and flushing started to fail because the syspref cache was no longer referenced
from Koha::Caches.

The original change was made to try to get around the memcached cache
expiration issues.
And had this unintended side-effect.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list