Bug 7857 - invalidate cached preferences after SetVersion

This allows plack to correctly move to login page after database upgrade
This commit is contained in:
Dobrica Pavlinusic 2012-04-05 14:15:30 +02:00 committed by Paul Poulain
parent 8c309c1a67
commit a29a5df175

View file

@ -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;