You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. After publishing a new version for the web, I want to automatically clear all route cache data on redis. Does anyone know how to do that?
The text was updated successfully, but these errors were encountered:
vuthanhbayit
changed the title
How to automatically clear redis route cache when building a new version
How to automatically clear redis route cache when building a new version?
Nov 19, 2024
Or you can implement the buildCacheKey method in the module's serverOptions: https://nuxt-multi-cache.dulnan.net/features/route-cache#cache-key-for-routes
This method is called to determine the key for the route cache item. You could add a version number or build/commit hash to this key that changes for every new version. By doing that you don't directly purge the cache. However you will make sure that after every deployment you won't be serving cached routes from before the deployment, since the key is now different.
Hello. After publishing a new version for the web, I want to automatically clear all route cache data on redis. Does anyone know how to do that?
The text was updated successfully, but these errors were encountered: