Bug 30920: Add caching to GetAuthorizedValueDesc
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 26 May 2022 15:31:30 +0000 (16:31 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 13 Mar 2023 18:11:24 +0000 (15:11 -0300)
commitab866f040dc72da28ed59f3bf16505bfba47ed21
tree864ca48a10a2cea011f8650c08277891234b4803
parent4438c4da2e742c9383f30ea9850b8f0a1a3b5712
Bug 30920: Add caching to GetAuthorizedValueDesc

This patch adds caching to C4::Biblio::GetAuthorisedValueDesc for performance.

We cache each hash involved in the method use for description lookup and
we're careful to clear said caches appropraitely on changes.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Biblio.pm
Koha/AuthorisedValue.pm
Koha/ClassSource.pm
Koha/ItemType.pm
Koha/Library.pm
Koha/Localization.pm