Implement caching mechanism

Created on 4 April 2014, over 10 years ago
Updated 13 January 2024, 11 months ago

Currently we have no caching mechanism in Coffee for the 8.x version.

Todo:
- Define when the index should be cached
- Define when the cache is invalid
- Adopt local storage for caching (merge with 📌 Local Storage for Coffee Needs review )

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇳🇱Netherlands michaelmol

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇷Argentina hanoii 🇦🇷UTC-3
  • 🇬🇧United Kingdom catch

    I think it would be worth implementing object caching for the coffee AJAX callback, after working on 📌 Get coffee data only when the search box is opened Active . This could and should happen independently of local storage because the callback should be cacheable by permissions 99% of the time.

    Haven't looked at implementation yet, but it might work if the AJAX request uses GET and the callback returns a cacheable response object, then potentially dynamic_page_cache could handle it with the correct cache contexts and cache tags. If there's something missing, then using VariationCache is possible in core now.

Production build 0.71.5 2024