gabrielstuff
dumb question: cache usage with useFetch
Thanks ! what I'm interested in is learning material about the options : https://github.com/nuxt-hub/core/tree/main/src/runtime/cache
for instance, do I need: https://nuxt-multi-cache.dulnan.net/ ?
Looking at all the discussion there https://github.com/nuxt/nuxt/discussions/10463 or here https://discord.com/channels/473401852243869706/1002541842409193563/1105460171620233308
I'm gonna take my head arround on https://nuxt.com/docs/guide/concepts/rendering before jumping on nuxt-hub.
I really wish I could read the same type of concept https://nuxt.com/docs/guide/concepts/rendering but for caching : API response, full page, etc.
39 replies
dumb question: cache usage with useFetch
well, I'm looking for a comprehensive guide on the solution to implement caching.
my first issue is the comprehension of the nuxt lifecycle and how pages workers are working. To my understanding workers are spin dynamically. If no one is accessing to my nuxt site, no worker are running. I've check https://www.youtube.com/watch?v=A7A1N8FTxk4 and read https://blog.nuxtdojo.com/p/2-understanding-lifecycle-hooks-in
So basically, my app does not have "memory" (cache) when running on Cloudflare.
There is nothing that is not working. I'm just trying to understand what are my options.
for instance I would have imagined that I could simply pick a storage (redis, whatever) pass it in my nuxt config and have cache 🙂
39 replies
dumb question: cache usage with useFetch
I was expecting something out of the box. I've been reading : https://discord.com/channels/473401852243869706/1260507222497038356/1260507222497038356, https://discord.com/channels/473401852243869706/1207338819116859474/1207338819116859474, https://discord.com/channels/473401852243869706/1311000691204030464/1311000691204030464
And looked at : https://hub.nuxt.com/docs/features/cache I feel like the "caching part", client side, server side, page, etc. is gatekeep by nuxthub.
Can't find a proper documentation.
Also read :
- https://github.com/nuxt/nuxt/issues/26598
- https://github.com/nuxt/nuxt/discussions/26957
And when you google it first result about Cache and Nuxt is nuxthub
39 replies
Build Nuxt for CF Worker and postgre
Some reading here: https://nuxt.com/docs/getting-started/configuration#external-configuration-files and there: https://github.com/nitrojs/nitro/issues/178, https://github.com/nitrojs/nitro/issues/1967
6 replies