[Koha-bugs] [Bug 32478] New: Remove Koha::Config::SysPref->find since bypasses cache
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Dec 15 19:34:54 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32478
Bug ID: 32478
Summary: Remove Koha::Config::SysPref->find since bypasses
cache
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: glasklas at gmail.com
QA Contact: testopia at bugs.koha-community.org
Using
Koha::Config::SysPrefs->find('UpdateItemLocationOnCheckin')->get_yaml_pref_hash()
to retrieve yaml sysprefs will bypass caching negating the very minor
performance gain per call get_yaml_pref_hash was meant to achieve since it in
some cases is being called repeatedly a very large number of times. Replacing
it with C4::Context->yaml_preference('ItemsDeniedRenewal') will utilize the
syspref cache and also not support a very small (not even valid) subset of
YAML.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list