From d8c4570a3bcb180b01240f89bfbfaa6be3e65e2f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 10 Mar 2016 09:12:52 +0000 Subject: [PATCH] Bug 11998: Clear L1 cache from psgi files --- debian/templates/plack.psgi | 4 ++++ misc/plack/koha.psgi | 2 ++ 2 files changed, 6 insertions(+) diff --git a/debian/templates/plack.psgi b/debian/templates/plack.psgi index 559e598..890091d 100644 --- a/debian/templates/plack.psgi +++ b/debian/templates/plack.psgi @@ -48,6 +48,10 @@ use CGI qw(-utf8 ); # we will loose -utf8 under plack, otherwise }; } +BEGIN { + C4::Context->clear_syspref_L1_cache(); +}; + my $intranet = Plack::App::CGIBin->new( root => '/usr/share/koha/intranet/cgi-bin' ); diff --git a/misc/plack/koha.psgi b/misc/plack/koha.psgi index 89dbb65..a8c1d12 100644 --- a/misc/plack/koha.psgi +++ b/misc/plack/koha.psgi @@ -61,6 +61,8 @@ sub watch_for_size { return @watch; }; +C4::Context->clear_syspref_L1_cache(); + my $CGI_ROOT = $ENV{INTRANET} ? $ENV{INTRANETDIR} : $ENV{OPACDIR}; warn "# using Koha ", $ENV{INTRANET} ? 'intranet' : 'OPAC', " CGI from $CGI_ROOT\n"; my $app=Plack::App::CGIBin->new(root => $CGI_ROOT); -- 2.7.0