helloswish / craft-sucuri-cache-clear
Purge Sucuri caches from Craft.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:craft-plugin
Requires
- php: >=8.0.2
- ext-curl: *
- craftcms/cms: ^4.3.5|^5.0.x-dev|^5.0.0
README
Sucuri Cache Clear
Purge Sucuri caches from Craft. Please note, this is the same plugin as Securi Cache Clear, with the spelling of Sucuri corrected in this version.
Requirements
This plugin requires Craft CMS 4.x or later, or Craft CMS 5.x or later and PHP 8.0.2 or later.
Installation
You can install this plugin from the Plugin Store or with Composer.
From the Plugin Store
Go to the Plugin Store in your project’s Control Panel and search for “Sucuri Cache Clear”. Then press “Install”.
With Composer
Open your terminal and run the following commands:
# go to the project directory cd /path/to/my-project # tell Composer to load the plugin composer require swish-digital/craft-sucuri-cache-clear # tell Craft to install the plugin ./craft plugin/install sucuri-cache-clear
Configuration
Go to your Sucuri dashboard and locate the API section. Find your API Key and API Secret.
It is recommended that you add the key and secret to your .env file as environment variables. However, you may also enter them directly into the plugin settings.
Go to your Craft control panel > Settings > Plugins > Sucuri Cache Clear > Settings
Enter your API Key and API Secret, or choose the environment variables you previously setup, and save the plugin settings.
Usage
Go to your Craft control panel > Utilities > Sucuri Cache Purge and click the "Purge Sucuri Cache" button. Once complete, the control panel will display a success notification popup.
Roadmap
- Add discreet uri cache clearing utility
- Add cache clearing upon element save (entries, categories, globals, etc.)
Support
Please file an issue on Github.