From ca00f0ddaeb76106b4aa274fd1848844ae042f58 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 6 Mar 2015 14:42:38 +0100 Subject: [PATCH] Bug 13805: (Plack) Disable syspref cache When going to the installer (without the DB structure), you have to log twice before starting the installation. Test plan: 0/ Create a new database and fill the database entry in the koha conf with its name 1/ Go on the mainpage, you should be redirected to the installer 2/ Try to log in Without this patch, you will get the login form again. With this patch, you can start the installation Signed-off-by: Tomas Cohen Arazi --- misc/plack/koha.psgi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/plack/koha.psgi b/misc/plack/koha.psgi index b0cd20a390..b8d72b0dc0 100644 --- a/misc/plack/koha.psgi +++ b/misc/plack/koha.psgi @@ -52,6 +52,8 @@ use C4::Tags; # FIXME use Devel::Size 0.77; # 0.71 doesn't work for Koha my $watch_capture_regex = '(C4|Koha)'; +C4::Context->disable_syspref_cache; + sub watch_for_size { my @watch = map { s/^.*$watch_capture_regex/$1/; s/\//::/g; s/\.pm$//; $_ } # fix paths -- 2.39.5