Bug 29454: Use Koha Cache Memory Lite to stash itemtype descriptions for template...
authorNick Clemens <nick@bywatersolutions.com>
Mon, 13 Dec 2021 14:44:18 +0000 (14:44 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 29 Jul 2022 15:54:15 +0000 (15:54 +0000)
commitf4595b7bbdd4fd739084e4df3123821572b1a39c
tree74ca94e8288ab237de4f220a537af44af9e068c5
parent01bde643f2fc7b9541f006fdaaa1ec68c262c612
Bug 29454: Use Koha Cache Memory Lite to stash itemtype descriptions for template plugin

Returns empty string if given item type is undefined or unknown

To test:
1 - Add 1000 items to a record, of varying item types
2 - Bring up the details page
3 - Note time to load
4 - Apply patch
5 - Reload page and compare to previous
6 - Confirm information is correct
7 - Confirm some performance benefit

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 3df28469c551d7cc2c2f16925e75e9913db0ee67)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Template/Plugin/ItemTypes.pm