[Koha-bugs] [Bug 36238] New: C4::Context->preference doesn't cache values for non-existent sysprefs
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 6 02:28:39 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36238
Bug ID: 36238
Summary: C4::Context->preference doesn't cache values for
non-existent sysprefs
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: dcook at prosentient.com.au
QA Contact: testopia at bugs.koha-community.org
If you try to look up a system preference that doesn't exist, C4::Context won't
cache a value for it.
Overall, it is logical not to cache a system preference that doesn't exist in
the systempreferences database table.
However, maybe you distribute a plugin or template which uses a local system
preference, and it only exists in some systems. On the systems missing the
preference, you'll be doing a database call every time instead of using the
cached value of nothing.
This is suboptimal from a performance perspective.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list