[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
Sat Sep 11 08:22:20 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28436
Fridolin Somers <fridolin.somers at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fridolin.somers at biblibre.co
| |m
--- Comment #7 from Fridolin Somers <fridolin.somers at biblibre.com> ---
(In reply to David Cook from comment #4)
> 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.
Indeed.
I think we should use Memcached for those datas, they are not often changed.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list