Version 1.1.0

April 23, 2022

Changed

  • Automatic element-save cache purges are now sent to the queue to speed up element saves.
  • Cleaned up translation files and added new keys to German set.

Fixed

  • Draft entry and category saves are ignored and will not trigger a cache purge.

Version 1.0.3.1

January 31, 2022

Fixed

  • Fixed a bug where only the zone cache purge would log a 200-status failure response. (Now applies to all other API requests.)

Version 1.0.3

January 29, 2022

Fixed

  • Unsuccessful, 200-status API responses will log returned messages instead of throwing exceptions. (#44)

Version 1.0.2

October 2, 2021

Changed

  • Minor front-end dependency security updates.

Removed

  • Removed explicit Composer PHP requirement.

Version 1.0.1

February 2, 2021

Changed

  • Moved cache file to Craft’s storage directory rather than its default vendor/ location. (#31)

Version 1.0.0

January 31, 2021

Added

  • Added a Cloudflare utility for purging URLs and managing rule-based purging options.

Changed

  • Craft 3.6.0 or higher is required.
  • Moved formerly-hidden purge rules to the Cloudflare utility. (#26)
  • Moved URL purge tools from settings to the Cloudflare utility.

Fixed

  • Added support for multi-level domain suffixes. (#22)

Removed

  • Removed static $plugin variable. Replace instances of Cloudflare::$plugin with Cloudflare::getInstance().

Version 0.6.0

October 24, 2020

Fixed

  • Fixed PSR-4 namespacing for Composer 2.

Version 0.5.1

April 26, 2020

Fixed

  • Fresh plugin installs no longer prevent saving key-based settings. (Fixes #19.)

Version 0.5.0

April 5, 2020

Added

  • Expanded automatic element URL purge options to include categories, tags, and Commerce variants and products. (#16)

Fixed

  • Improved zone selection for API tokens that can’t list zones. (#17)

Changed

  • Moved documentation to its own site.

Version 0.4.1

February 11, 2020

Added

  • The zone setting will now be parsed for environment variables.

Changed

  • All control panel interactions are now asynchronous.
  • The dashboard widget and settings page will both ask for confirmation before purging the entire zone.
  • Updated the readme.

Fixed

  • It’s now possible to set the Cloudflare zone ID from a static config file.
  • Purge attempts from the control panel now correctly report success or failure and log details to the browser console.

Version 0.4.0

December 26, 2019

Fixed

  • Settings no longer throw an exception if saved with an invalid API Key.
  • Fixed missing credentials alert in Settings when verifying an API Token without key settings present.
  • Optimized and refactored code.
  • Improved Settings validation.
  • Fixed widget icon.

Changed

  • The cloudflare service is now api.
  • Stale settings for an unused auth type will be removed rather than stored.

Version 0.3.0

December 26, 2019

Added

  • Added support for API Tokens.

Version 0.2.9

March 23, 2019

Added

  • Added craft cloudflare/purge/purge-all and craft cloudflare/purge/purge-urls console commands for clearing zone and individual URL caches.

Changed

  • Can now auto-purge zone subdomain URLs, useful for CDN-hosted Assets.

Fixed

  • Fixed trivial yet unsightly padding issue resulting from a Craft CSS update.

Version 0.2.8

March 2, 2019

Fixed

  • Fixed Craft < 3.1 compatibility for API Key setting.

Version 0.2.7

February 26, 2019

Added

  • Environment variables can now be used for the control panel's API Key setting.

Version 0.2.6

January 5, 2019

Fixed

  • Fixed console exception thrown checking for post params when they don't exist.

Version 0.2.5

January 5, 2019

Fixed

  • Removed perilous trailing comma from CloudflareService. (Thanks @jkorff!)

Version 0.2.4

January 5, 2019

Fixed

  • Settings "Verify Credentials" AJAX works again after bug introduced in 0.2.2 (#10).
  • Restored proper logging (#10).
  • Made various code improvements to benefit readability and sanity.

Changed

  • Slightly changed CloudflareService API to improve clarity and efficiency. **If you had custom code interacting with the apiBaseUrl, client, or isConfigured properties, please use getApiBaseUrl(), getClient(), and isConfigured() respectively.
  • After initial setup (or re-saving Settings), only URLs in the selected zone name (domain) will be purged. This will prevent API calls in environments with base URLs that aren't on the Cloudflare zone.
  • Updated Composer requirements to include PHP 7 and the JSON extension.

Version 0.2.3

November 2, 2018

Fixed

  • Fixed missed purges due to doubled-up element site URLs (https://foo.com/https://foo.com/element).

Version 0.2.2

October 26, 2018

Fixed

  • Prevented plugin from interfering with console commands.

Improved

  • Configuration options can now display more than 20 zones.

Version 0.2.1

September 20, 2018

Fixed

  • Missing API credentials won't affect element save/delete actions.

Version 0.2.0

May 8, 2018

Added

  • Craft 3 version initial release. Many thanks to Mo, all mistakes mine.

Version 0.1.4

September 27, 2017

Improved

  • Reduce API calls before credentials are added.

Version 0.1.3

September 26, 2017

Added

  • Exposed automatic Asset and Entry URL purge in settings.

Improved

  • Improved log messages for failed URL purges."

Version 0.1.2

September 14, 2017

Added

  • Added dashboard quick purge widget.

Version 0.1.1

August 16, 2017

Fixed

  • Added proper support custom CP + action URLs.

Version 0.1.0

August 15, 2017

Added

  • Initial release.