Bugzilla – Attachment 74520 Details for
Bug 20582
Turn Koha into a Mojolicious application
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20582: Flush memory caches before every request
Bug-20582-Flush-memory-caches-before-every-request.patch (text/plain), 814 bytes, created by
Julian Maurice
on 2018-04-19 06:49:56 UTC
(
hide
)
Description:
Bug 20582: Flush memory caches before every request
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-04-19 06:49:56 UTC
Size:
814 bytes
patch
obsolete
>From 0f337000630687f4d575f1d17c1956cc7ce2f4d3 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Thu, 19 Apr 2018 00:09:29 +0200 >Subject: [PATCH] Bug 20582: Flush memory caches before every request > >--- > Koha/App/Koha.pm | 7 +++++++ > 1 file changed, 7 insertions(+) > >diff --git a/Koha/App/Koha.pm b/Koha/App/Koha.pm >index c3e11d4e91..6e47272a81 100644 >--- a/Koha/App/Koha.pm >+++ b/Koha/App/Koha.pm >@@ -4,6 +4,9 @@ use Modern::Perl; > > use Mojo::Base 'Mojolicious'; > >+use Koha::Caches; >+use Koha::Cache::Memory::Lite; >+ > sub startup { > my ($self) = @_; > >@@ -51,6 +54,10 @@ sub _before_dispatch { > } > > $c->req->url->parse($url); >+ >+ # Flush caches before every request >+ Koha::Caches->flush_L1_caches(); >+ Koha::Cache::Memory::Lite->flush(); > } > > 1; >-- >2.14.2
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 20582
:
74173
|
74517
|
74518
|
74519
|
74520
|
79648
|
81687
|
81857
|
82423
|
84526
|
84527
|
84528
|
84529
|
84530
|
84531
|
91009
|
99267
|
103633
|
103720
|
103721
|
109282
|
109283
|
109284
|
109895
|
109896
|
109897
|
109898
|
109899
|
109900
|
111282
|
111315
|
111374