From 24b758b38c5281eaed6d31c35ebe93cea0e08c8a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 25 Mar 2016 13:06:07 +0000 Subject: [PATCH] Bug 16140: ->flush_if_needed should be called on an instanciate Koha::Cache object --- misc/plack/koha.psgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/plack/koha.psgi b/misc/plack/koha.psgi index 845e47e..05f92ec 100644 --- a/misc/plack/koha.psgi +++ b/misc/plack/koha.psgi @@ -12,7 +12,7 @@ use CGI qw(-utf8 ); # we will lose -utf8 under plack *CGI::new = sub { my $q = $old_new->( @_ ); $CGI::PARAM_UTF8 = 1; - Koha::Cache->flush_L1_if_needed(); + Koha::Cache->get_instance->flush_L1_if_needed(); return $q; }; } -- 2.7.0