Sunny: A Plugin to Automatically Clear CloudFlare Cache and Manage Settings in WordPress

sunshine

WordPress sites that take advantage of Cloudflare‘s global CDN and DNS services generally do so via the official Cloudflare plugin. It provides the basics for connecting your domain and API key with the service. However, it does not include a way to clear the cache or make adjustments to how it works.

Sunny is a new plugin that adds more control to WordPress sites using Cloudflare. It gives you the ability to test your Cloudflare API key and to purge your cache manually in the admin. Sunny automatically clears the corresponding cache for a post whenever it is updated.

sunny-cache-purge

I confirmed with Tang Rufus, the plugin’s author, that you can use Sunny in combination with the official Cloudflare plugin. In the future he plans to add the following features:

  • Purge homepage, tag pages and category pages cache during post update
  • Purge images during post update
  • Turn on develop mode when logged in
  • Purge CloudFlare when WP Super Cache is purged
  • Blacklist an IP when WP Better Secuity locks it down

The official Cloudflare plugin has been downloaded nearly 350,000 times on WordPress.org. Given that many WordPress sites depend on it for linking up their Cloudflare accounts, it’s surprising that the plugin’s development team hasn’t added much in the way of cache control options. If you need to be able to dump your Cloudflare cache on demand, check out the free Sunny plugin on WordPress.org and watch for more control options in a future release.

9 Comments


  1. Glad to help, Navneet.
    Some new features are coming in the next few days.
    Be sure to check the updates.

    Thanks Sarah for the clarification. I will explain how Sunny works alongside with the official CloudFlare plugin in the the description / FAQ.

    Report


  2. I don’t know why but this plugin is not working for me. I did everything. I cleared my blog’s minify cache, purged my CDN’s ( maxcdn ) cache, cleared my database cache. But still I am unable to purge my cloudflare’s cache.

    Report


  3. I knew someone must have come up with such one and was looking for that, great plugin and thank you for the share :)

    Report


  4. Thanks Sarah this is going to be very handy. Specially when setting up cloud flare for client sites.

    Report


  5. @TangRufus How does your plugin handle sitemaps (HTML and XML) and RSS feeds?

    W3TC typically caches these … so I was wondering if your plugin also purges them when pages/posts/etc are added/modified.

    Report

Comments are closed.