Bug 15333: Use Koha::Cache to cache exception_holidays instead of a package variable
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 May 2016 19:35:39 +0000 (20:35 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Thu, 9 Jun 2016 07:32:46 +0000 (09:32 +0200)
commit0c61cb521473786727d5f6f07f42f7e594f9f16a
tree88dcbc44769eab1d969cd86145ad8f1be311cdff
parent72c54153efa531308ff4339fb91d3a99b261d7a2
Bug 15333: Use Koha::Cache to cache exception_holidays instead of a package variable

On the same way as bug 14522, we should use Koha::Cache to cache
exception_holidays.
It's not safe to use a package variable if running under Plack.

There is not test plan, just make sure the changes make sense.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit cbd375fab76a89b75f3795c9ebafe434bf79c878)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Calendar.pm
Koha/Calendar.pm