[Koha-bugs] [Bug 29454] Stash branches and itemtypes in plugin objects to reduce DB calls

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 10 17:51:23 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29454

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 127515
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=127515&action=edit
Bug 29454: Add local cache to Template Plugins for branches and itemtypes

This patch simply stores the branches an itemtypes in a hash for lookup.
This improves efficiency on pages where we are loading many items

To test:
1 - Add ~1000 items to a record
2 - Note load time
3 - Apply patch
4 - Reload and note faster load
5 - Edit a branchname/itemtype description
6 - Reload page
7 - Confirm the updated name is reflected in display

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