Search code examples
cachingcloudflarecdn

Is there a system where developers don't get the access to the Cloudflare account but can purge the cache themselves when needed?


Basically the question. We have recently integrated one of our sites to Cloudflare, at work. The Tech support team are hesitant to provide access for the account to me and other developers, as it has DNS settings in it and it is understandable. But, we need the access for the account so that we can purge the cache of any live URL anytime we need after making changes to a page on the live server. It wouldn't be feasible to contact the tech support everytime we need to clear the cache, as we might sometimes need multiple refreshes in quick successions. We haven't requested them to switch on 'Cache Everything' setting yet, due to this situation.

So, I would like to know how this is handled in other companies who have similar constraints. What could be the ideal solution for this situation?


Solution

  • They would need to provide you with an API token with just the necessary permissions required to perform your job (just the Cache Purge permission for example).

    You would use that API token to call the API to purge the cache.