is there still no option to manually invalidate the cache?
with accelerate, is this even in development?
8 Replies
Hey @sylvester stallone 👋🏾 ,
To manually invalidate the cache you have to go to the platform console.
You can also create add a
cacheKey
field in your model such as,
You would have to store the cacheKey
in some key value store and update it on every invalidation.
During reads,
This would guarantee invalidations on every update, even on development. Let me know if this helps!how would this work on a findMany @Ankur Datta
also when is cache invalidation shipping in accelerate? is there an RFP we could trakc?
how would this work on a findManyIt would be a bit tricky with findMany, but it's doable. Let me know if I need to elaborate 😄 .
Also when is cache invalidation shipping in accelerate? is there an RFP we could trakc?We have no timelines for this as of yet. I'll let you know once we have something 🙏🏾 .
The cache key method is interesting and probably something I will have to do on some of my queries for now. But I really think a built-in method for invalidating query cache should be near the top of the roadmap's priority list. I would consider a feature like this MVP necessary
Also an option to refresh the cache in the background on demand please 🙂
@colhoop we're working on cache invalidation for Accelerate 😄 . Keep an eye on the #announcements channel for any news on this 👀 .
Hi, any update on this?
Been waiting on on-demand invalidation since Accelerate was first announced.
Hey @Ved and @Raj 👋🏾 , thanks for letting your interest known. We'll reach out to you once the feature is out 😄 .