Purge Global Cache via API
I was wondering if there was any way to programmatically purge the global Accelerate cache via the API. I understand that there's still a limit of 10x an hour but it would be nice to have an automation setup in our data pipeline to purge the cache whenever we update our daily datasets
5 Replies
You're in no rush, so we'll let a dev step in. Enjoy your coffee, or drop into
#ask-ai
if you get antsy for a second opinion!Hey @Raj 👋
To make sure I understand your use case, you don't want to invalidate by tags and rather want to purge all cache, right?
Essentially an API for the operation you have to manually do via the Console as shown in the screenshot, right?
https://www.prisma.io/docs/accelerate/api-reference#accelerateinvalidate

correct!
@Nurul any updates in regards to this?
Hey @Raj
I shared your use case with our team internally and we are currently discussing the efforts/feasibility to allow this API. I'll keep you posted as soon as I have more information.
Thanks 🙂