[Koha-bugs] [Bug 28436] Cache relatively static info that is used often and on many pages (instead of fetching from DB)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 8 14:40:28 CEST 2021


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

--- Comment #1 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 124655
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124655&action=edit
Bug 28436: 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 watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list