From 026bcc814190c22ef9ddaf7ffe084a1f23564a5c 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 files changed, 1 insertions(+), 0 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 503c8ee..82cf44a 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -5212,6 +5212,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; -- 1.7.2.5