Bug 11112: (follow-up) add FIXME
authorGalen Charlton <gmc@esilibrary.com>
Tue, 10 Dec 2013 18:21:09 +0000 (18:21 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 10 Dec 2013 18:21:09 +0000 (18:21 +0000)
The caching introduced by the main patch is not ideal
as it won't work correctly if a persistance engine is used.

However, I have good reason to expect that bug 8089 will
be worked on (because I'm going to do it) so that Koha::Cache
can be used for this prior to the release of 3.16.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Koha/Calendar.pm

index 293ba88..276c7ce 100644 (file)
@@ -54,6 +54,11 @@ sub _init {
 }
 
 
+# FIXME: use of package-level variables for caching the holiday
+# lists breaks persistance engines.  As of 2013-12-10, the RM
+# is allowing this with the expectation that prior to release of
+# 3.16, bug 8089 will be fixed and we can switch the caching over
+# to Koha::Cache.
 our ( $exception_holidays, $single_holidays );
 sub exception_holidays {
     my ( $self ) = @_;