From a29a5df175f4112302de71456d4f21d0dd7f48cf Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Thu, 5 Apr 2012 14:15:30 +0200 Subject: [PATCH] Bug 7857 - invalidate cached preferences after SetVersion This allows plack to correctly move to login page after database upgrade --- installer/data/mysql/updatedatabase.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 1b6fe84374..0a2aea9954 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -5459,6 +5459,7 @@ sub SetVersion { my $finish=$dbh->prepare("INSERT into systempreferences (variable,value,explanation) values ('Version',?,'The Koha database version. WARNING: Do not change this value manually, it is maintained by the webinstaller')"); $finish->execute($kohaversion); } + C4::Context::clear_syspref_cache(); # invalidate cached preferences } exit;