[Koha-bugs] [Bug 32476] Add caching for relatively expensive patron methods

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 4 18:40:01 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32476

--- Comment #15 from David Gustafsson <glasklas at gmail.com> ---
Sure, personally I don't see major issues using closures if resulting in less
boiler plate and thus less error prone code. But using your suggestion  allows
for flexibility with regards to flushing cache on uncached calls, so I guess
that could be a good thing. A downside is that it would lead to more convoluted
code if wishing to cache methods with arguments. But perhaps in those cases
caching should be handled manually anyways. I slightly modified your suggesting
calling different methods instead of relying on arguments to dispatch to
different behaviors (clearing/retrieving cache), but should otherwise be
equivalent.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list