[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 Jul 5 13:50:12 CEST 2023


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

--- Comment #29 from Kyle M Hall <kyle at bywatersolutions.com> ---
I don't want to derail this bug, but an interesting follow-up would to be use
replace manually implementing the caching for each method with decorators like
https://metacpan.org/pod/Class::Decorator or
https://metacpan.org/pod/Python::Decorator

Then, enabling caching for a given method would be as simple as changing

sub is_expired {

to

@cached
sub is_expired {

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


More information about the Koha-bugs mailing list