Bug 11998: Clear L1 cache from psgi files
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 10 Mar 2016 09:12:52 +0000 (09:12 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 15 Mar 2016 07:08:30 +0000 (07:08 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
debian/templates/plack.psgi
misc/plack/koha.psgi

index 559e598..b6bd67f 100644 (file)
@@ -44,6 +44,7 @@ use CGI qw(-utf8 ); # we will loose -utf8 under plack, otherwise
     *CGI::new = sub {
         my $q = $old_new->( @_ );
         $CGI::PARAM_UTF8 = 1;
+        C4::Context->clear_syspref_L1_cache();
         return $q;
     };
 }
index 89dbb65..947bb02 100644 (file)
@@ -12,6 +12,7 @@ use CGI qw(-utf8 ); # we will loose -utf8 under plack
     *CGI::new = sub {
         my $q = $old_new->( @_ );
         $CGI::PARAM_UTF8 = 1;
+        C4::Context->clear_syspref_L1_cache();
         return $q;
     };
 }