]> git.koha-community.org Git - koha.git/commit
Bug 23387: Add caching to C4::ClassSource
authorNick Clemens <nick@bywatersolutions.com>
Mon, 5 Aug 2024 18:21:46 +0000 (18:21 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Mon, 26 Aug 2024 15:39:31 +0000 (17:39 +0200)
commitede0b6d8d704f823bf630844d55d4a3be2fb930a
treeb8493c4dcfcd767b55ffa338db1c679c8cd6e0be
parent804fd912d4de32c0efd0c88b3145ecb444183be1
Bug 23387: Add caching to C4::ClassSource

These routines ultimately need to be moved to the Koha namespace, for now though,
we can reduce look ups during import and batch modification by caching the values
here for each request

To test:
1 - prove -v t/db_dependent/ClassSources.t
2 - Import some records with items, confirm cn_sort values correctly built
3 - Edit some items, confirm cn_Sort correclty built

Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
C4/ClassSource.pm
t/db_dependent/ClassSources.t [new file with mode: 0755]