[Koha-bugs] [Bug 28436] Cache relatively static info that is used often and on many pages (instead of fetching from DB)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Sep 9 04:42:47 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28436
--- Comment #4 from David Cook <dcook at prosentient.com.au> ---
It would be more robust and more readable.
Or if we wanted to persist the cache beyond the request-level we could use
Koha::Cache, and rely on the staff interface for Libraries and Item Types to
invalidate the cache.
That would be even better.
That Koha::Cache could also be placed in the respective modules and have
something like Koha::ItemTypes->get_list() or whatever and have the specific
module handle it's own caching logic.
Lots of options which would be less hacky and more robust.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list