caching with docker
Unanswered
Sweat bee posted this in #help-forum
Sweat beeOP
hey, I wonder how the caching works within docker container. on google cloud run? Does this still work on new container if they are needed?
5 Replies
Toyger
cloud run is simple serverless that run your containers, so cache will be purged, as soon as container removed.
Vercel is also serverless, but they manage cache in their own way https://vercel.com/changelog/introducing-vercel-data-cache so it remain live even when containers dead.
Vercel is also serverless, but they manage cache in their own way https://vercel.com/changelog/introducing-vercel-data-cache so it remain live even when containers dead.
Sweat beeOP
do I have to config a custom cache handler then?
according to the docs: Using a custom cache handler will allow you to ensure consistency across all pods hosting your Next.js application.
@Sweat bee according to the docs: Using a custom cache handler will allow you to ensure consistency across all pods hosting your Next.js application.
Toyger
theoretically yes, but docs is kinda cumbersome, they didn't explain will it handle all cache types or not.
Sweat beeOP
ok I just don't know what to do to make sure the entire caching just works... by know it seems to have some issues. Changing something in a headless CMS (contentful) doesnt trigger revalidate, then I revalidate manually, which fixes the issue and all of the sudden after a couple minutes the old version is being displayed again.