Bugzilla – Attachment 152096 Details for
Bug 33720
updatedatabase.pl should purge memcached
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33720: Update the updatedatabase.pl script to flush caches before running
Bug-33720-Update-the-updatedatabasepl-script-to-fl.patch (text/plain), 1.16 KB, created by
Jonathan Druart
on 2023-06-07 11:37:50 UTC
(
hide
)
Description:
Bug 33720: Update the updatedatabase.pl script to flush caches before running
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-06-07 11:37:50 UTC
Size:
1.16 KB
patch
obsolete
>From b942abfc49d3c123f385f1c40c73e5bd4536600d Mon Sep 17 00:00:00 2001 >From: Jake Deery <jake.deery@ptfs-europe.com> >Date: Wed, 7 Jun 2023 13:37:09 +0200 >Subject: [PATCH] Bug 33720: Update the updatedatabase.pl script to flush > caches before running > >--- > installer/data/mysql/updatedatabase.pl | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index c95fdf3e3cc..06f98e8e614 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -41,6 +41,7 @@ use C4::Installer; > use Koha::Database; > use Koha; > use Koha::DateUtils qw( dt_from_string output_pref ); >+use Koha::Caches; > > use MARC::Record; > use MARC::File::XML ( BinaryEncoding => 'utf8' ); >@@ -69,8 +70,11 @@ $|=1; # flushes output > > local $dbh->{RaiseError} = 0; > >-# Record the version we are coming from >+# Flush memcached before we begin >+Koha::Caches->get_instance('config')->flush_all; >+Koha::Caches->get_instance('sysprefs')->flush_all; > >+# Record the version we are coming from > my $original_version = C4::Context->preference("Version"); > > # Deal with virtualshelves >-- >2.25.1
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 33720
:
151083
|
151881
|
152096
|
152852
|
152853
|
152857
|
152858