https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15970 Bug ID: 15970 Summary: Plack should not clear syspref cache Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: ASSIGNED Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: jonathan.druart@bugs.koha-community.org Reporter: jonathan.druart@bugs.koha-community.org QA Contact: testopia@bugs.koha-community.org Depends on: 15341, 13815 Just played with nytprof and found something exciting: If I remove the following line: C4::Context->clear_syspref_cache(); from the psgi file, the processing time is divided per 2 (!) With the clear cache: for 15.8s (of 18.6s), executing 2588556 statements and 903720 subroutine calls in 421 source files and 63 string evals. Without the clear cache: for 7.82s (of 8.69s), executing 904432 statements and 262539 subroutine calls in 421 source files and 63 string evals. I have tried to update a pref (NoLoginInstructions): it's saved and displayed correctly. Am I missing something? Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13815 [Bug 13815] plack loose CGI qw(-utf8) flag creating incorrect utf-8 encoding everywhere https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15341 [Bug 15341] Performance - Retrieve all sysprefs at once -- You are receiving this mail because: You are watching all bug changes.