drunomics / nuxtjs-drupal-ce

A Nuxt module to easily connect Drupal via custom elements.
https://lupus-decoupled.org/
MIT License
24 stars 4 forks source link

Nuxt Caching Layer #219

Open StirStudios opened 5 months ago

StirStudios commented 5 months ago

This might be something to consider on the nuxt side for caching: https://dev.to/ymir/mastering-caching-in-nuxt-3-a-comprehensive-guide-22ea

fago commented 5 months ago

I agree, that would be nice to support! In the end the change in server-routes to support it would be dead simple. Maybe we could just make our event handleres cached event handlers and expose some configuration options to adjust caching?

For the menu routes it makes a lot of sense to have some short-lived caches on by default imo, but we should watch out to vary caches by session cookie.