From 4cd07e4e6abbd1054ae10a19300c9bd32b25a95b Mon Sep 17 00:00:00 2001 From: Jacek Ablewicz Date: Mon, 7 Mar 2016 16:31:06 +0100 Subject: [PATCH] Bug 11998: Dealy cache intialisation That should solve the problem with fastmmap cache system --- C4/Context.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Context.pm b/C4/Context.pm index 5b27e28..d6d22fb 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -504,12 +504,13 @@ with this method. =cut -my $syspref_cache = Koha::Cache->get_instance(); +my $syspref_cache; my $use_syspref_cache = 1; sub preference { my $self = shift; my $var = shift; # The system preference to return + $syspref_cache ||= Koha::Cache->get_instance(); $var = lc $var; my $cached_var = $use_syspref_cache -- 1.7.10.4