Bugzilla – Attachment 48936 Details for
Bug 11998
Syspref caching issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11998: Clear L1 cache from psgi files
Bug-11998-Clear-L1-cache-from-psgi-files.patch (text/plain), 1.20 KB, created by
Jonathan Druart
on 2016-03-10 10:11:56 UTC
(
hide
)
Description:
Bug 11998: Clear L1 cache from psgi files
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-03-10 10:11:56 UTC
Size:
1.20 KB
patch
obsolete
>From d8c4570a3bcb180b01240f89bfbfaa6be3e65e2f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11998
:
26575
|
26621
|
26714
|
26716
|
26717
|
27382
|
31801
|
31802
|
32870
|
32871
|
32872
|
32873
|
32874
|
33183
|
33447
|
33670
|
33671
|
33685
|
33724
|
33725
|
33746
|
33829
|
33940
|
36523
|
36524
|
36525
|
36526
|
36527
|
36528
|
36529
|
36530
|
36531
|
36532
|
36533
|
36534
|
36571
|
36583
|
36584
|
36585
|
36586
|
36587
|
36588
|
36589
|
36590
|
36591
|
36592
|
36593
|
36594
|
36595
|
48640
|
48652
|
48655
|
48687
|
48688
|
48727
|
48758
|
48928
|
48929
|
48930
|
48931
|
48932
|
48933
|
48934
|
48935
|
48936
|
48961
|
49022
|
49023
|
49024
|
49025
|
49026
|
49027
|
49028
|
49029
|
49030
|
49100
|
49101
|
49102
|
49103
|
49104
|
49105
|
49106
|
49107
|
49108