Bug 30920: Add caching to GetAuthorizedValueDesc
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 26 May 2022 15:31:30 +0000 (16:31 +0100)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Tue, 14 Mar 2023 10:09:21 +0000 (10:09 +0000)
commit41e3fd285b461758f839e90ddc88e26a657718d3
tree7db1e08dfcb423d45b3c6a85f441eb51b6da15d4
parent730f4e1500ad88e21f377b2b79a15879caf534bd
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>
(cherry picked from commit ab866f040dc72da28ed59f3bf16505bfba47ed21)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
C4/Biblio.pm
Koha/AuthorisedValue.pm
Koha/ClassSource.pm
Koha/ItemType.pm
Koha/Library.pm
Koha/Localization.pm