- Fixed a bug where only the zone cache purge would log a
200
-status failure response. (Now applies to all other API requests.)
- Unsuccessful,
200
-status API responses will log returned messages instead of throwing exceptions. (#44)
- Minor front-end dependency security updates.
- Removed explicit Composer PHP requirement.
- Moved cache file to Craft’s storage directory rather than its default
vendor/
location. (#31)
- Added a Cloudflare utility for purging URLs and managing rule-based purging options.
- 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.
- Added support for multi-level domain suffixes. (#22)
- Removed static
$plugin
variable. Replace instances ofCloudflare::$plugin
withCloudflare::getInstance()
.
- Fixed PSR-4 namespacing for Composer 2.
- Fresh plugin installs no longer prevent saving key-based settings. (Fixes #19.)
- Expanded automatic element URL purge options to include categories, tags, and Commerce variants and products. (#16)
- Improved zone selection for API tokens that can’t list zones. (#17)
- Moved documentation to its own site.
- The
zone
setting will now be parsed for environment variables.
- 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.
- 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.
- 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.
- The
cloudflare
service is nowapi
. - Stale settings for an unused auth type will be removed rather than stored.
- Added support for API Tokens.
- Added
craft cloudflare/purge/purge-all
andcraft cloudflare/purge/purge-urls
console commands for clearing zone and individual URL caches.
- Can now auto-purge zone subdomain URLs, useful for CDN-hosted Assets.
- Fixed trivial yet unsightly padding issue resulting from a Craft CSS update.
- Fixed Craft < 3.1 compatibility for API Key setting.
- Environment variables can now be used for the control panel's API Key setting.
- Fixed console exception thrown checking for post params when they don't exist.
- Removed perilous trailing comma from CloudflareService. (Thanks @jkorff!)
- 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.
- Slightly changed CloudflareService API to improve clarity and efficiency. **If you had custom code interacting with the
apiBaseUrl
,client
, orisConfigured
properties, please usegetApiBaseUrl()
,getClient()
, andisConfigured()
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.
- Fixed missed purges due to doubled-up element site URLs (
https://foo.com/https://foo.com/element
).
- Prevented plugin from interfering with console commands.
- Configuration options can now display more than 20 zones.
- Missing API credentials won't affect element save/delete actions.
- Craft 3 version initial release. Many thanks to Mo, all mistakes mine.
- Reduce API calls before credentials are added.
- Exposed automatic Asset and Entry URL purge in settings.
- Improved log messages for failed URL purges."
- Added dashboard quick purge widget.
- Added proper support custom CP + action URLs.
- Initial release.