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

--- Comment #29 from Kyle M Hall <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to