Issue With API

Hi,

We have been using Cloudflare on a large sailing news website and it’s been working great. Today we tried setting up the API to allow for purging the entire cache but have come across and issue. When using the Purge Everything button on the CF website, it works perfectly everytime. We setup the API at url on the website and have proven the following:

  1. If you purge the cache using the website, it works.
  2. Use the API and the cache clears after about 30 - 60 secs.
  3. Use the API again and the cache won’t clear, even with leaving it for a few minutes.
  4. Use the website again and the cache clears.
  5. Use the API and the cache clears after about 30 - 60 secs.
  6. Use the API again and the cache won’t clear until you reset with website again.

So is there an undocumented limit on the API calls that would stop us running the API more than once in a certain time period without using the website purge to reset the limit?

Thanks,
David

Are you using the API key or a token for authentication and authorisation?

It uses the API token. When we run it, it always reports back that it was successful but the cache hasn’t actually cleared, which is the really odd thing.

Try the API key, there still were issues with tokens.

Thanks for getting back to me so quickly, we’ve actually solved the problem now. The page where the API was setup, was a subpage of the site being cached, so it was also being cached, which is why it would always work the first time. We’ve added it to the exceptions list and all is good again.