Are cache purge requests rate limited?

Yes. For the cache purge API, we have a rate limit of 2 cache purge requests per second, per customer. We have found that provides a reasonable limit and works well in practice.

If you issue more than two cache purge requests per second, you will get 503 errors from the API.

To avoid this, introduce a delay between purges to ensure that you don't hit up against this limit.

Alternatively, you can check the transaction ID returned from the purge request to poll the API for the status of the purge operation. In our example Python cache purge script, after a request is sent, we do this and poll the API for the status of the purge once every 10 seconds until we receive a status of "SUCCESS." This script can be downloaded from

https://support.instartlogic.com/hc/en-us/article_attachments/204432208/cache_purge_template.py