[Koha-bugs] [Bug 25457] The ViewPolicy filter should cache the MARC framework structure
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 11 20:50:02 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25457
--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 104713
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=104713&action=edit
Bug 25457: Make ViewPolicy cache MARC frameworks
This patch implements an implicit cache of the calculated MARC subfield
structures on each use of the filter. Moreover, if different frameworks
are set between calls (using $processor->options) all of them are
cached.
To test:
1. Apply the tests patch
2. Run:
$ kshell
k$ prove t/db_dependent/Filter_MARC_ViewPolicy.t
=> FAIL: The ViewPolicy filter doesn't cache anything
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list