[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
Thu May 4 14:54:08 CEST 2023


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

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart+koha at gmail.
                   |                            |com

--- Comment #22 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Did you identify where they (is_expired and has_overdues) would be called
extensively?

Did you benchmark your patches?

I can easily imagine a scenario where it would bring hard to detect
side-effects:
* check if a patron can check an item out
=> yes, cache "yes"
* check the item out
* check if the patron can check an other item out
=> Get "yes" from cache

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


More information about the Koha-bugs mailing list