5

PHP code to Purge Cloudflare Cache

 1 year ago
source link: https://gist.github.com/Greg-Boggs/73796406278cd67334db08dc052931dd
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

PHP code to Purge Cloudflare Cache · GitHub

Instantly share code, notes, and snippets.

PHP code to Purge Cloudflare Cache

great script, but can you purge cache to multiple domains (zones) ? I have 100+ domains and I wanna purge cache for all zones for current account.
Thanks!

Just add a loop and use a different zone-id to purge the caches you want to use.

Personally I am doing these kind of things based on information coming from a database. This way it is easy to log the results, and keep track when the purges were processed. If you are interested in such scripts you may visit : https://toolbox.tomdings.com/

Thank you for asking and enjoy your day!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK