Lucksmith369/Purge-CloudFlare-Cache
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
=== Purge CloudFlare Cache === Contributors: Lucksmith Donate link: https://www.paypal.me/Lucksmith Tags: CloudFlare, cache, cdn, free, performance, speed, cache clear, CloudFlare API Requires at least: 3.2 Tested up to: 5.3.2 Stable tag: 1.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Author URI: https://lucksmith.de/ Purge CloudFlare makes clearing CloudFlare cache as simple as one click. == Description == It clears whole CloudFlare cache for desired domain. Purge is done from WordPress admin panel or plugin's page. Current version contains functionality which purges individual files by URL and clears CloudFlare cache after Save Post action. THINGS YOU NEED TO KNOW: * Whenever you get error clearing the cache alert popup appears with CloudFlare Api response. * This version allows you to purge whole CF cache and specific files by their urs. * Clear cached files to force Cloudflare to fetch a fresh version of those files from your web server. You can purge files selectively or all at once. * Purging the cache may temporarily degrade performance for your website. == Installation == 1. Upload the plugin plugin to your blog. 2. Activate it. 3. Go to Dashboard->CF Purger (or directly to this URL: "http://your-wordpress-site.com/wp-admin/admin.php?page=cf-purger") and enter following fields: + CloudFlare API Token (you can find it in your CloudFlare <a target="_blank" href="https://www.cloudflare.com/a/account/my-account" >Account</a> ) previously logged in to CloudFlare + Zone ID - required to specify the domain clear cache for 4. Press "Save Changes" button 5. Be happy! :-) == Frequently Asked Questions == = Notice tells "CloudFlare cache clear attempt was done". How can I understand if autopurge is successful? = Good question. This notice doesn't guarantee the cache wa successfully purged. Next major version of the plugin will contain that functionality if needed. = How can I clear particular files? = Hover over Purge button in right top corner on WordPress admin bar and click "Specific Files". You will see modal (screenshot 6). Enter files in appeared form, press "purge Individual Files" button. Be happy =) = I have cleared cache, but no changes on my frontend. Why? = If no error message has appeared - wait for 30 seconds more. It must have successfully purged all assets. Please allow up to 30 seconds for changes to take effect. == Changelog == = 1.0 = Initial plugin release