manifest / performance / clear-cache-all
Clear Cache All
Automate clear cache after save post. Cache included (w3 total cache, wordpress cache, & views blade cache).
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/copiadigital/clear-cache-all/archive/refs/heads/master.zipClear Cache All - WordPress Plugin
A WordPress plugin for clearing all caches including Polylang cache.
Features
- Automatic cache clearing on post save
- Clears WordPress object cache
- Clears Polylang cache via WP-CLI
- Clears W3 Total Cache (if installed)
- Clears Blade view cache
- Manual cache clearing via admin bar (restricted to Copia Digital users only)
Requirements
- WordPress 5.0+
- PHP 7.4+
- WP-CLI 2.12.0+ (included in plugin)
- Polylang plugin (for Polylang cache clearing)
Installation
- Upload the plugin files to
/wp-content/plugins/clear-cache-all/ - Activate the plugin through the 'Plugins' menu in WordPress
- Ensure WP-CLI is executable:
chmod +x wp-cli.phar
WP-CLI
This plugin includes WP-CLI version 2.12.0 for cache operations.
Updating WP-CLI
To update to the latest version:
cd /path/to/wp-content/plugins/clear-cache-all/
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
Check version:
php wp-cli.phar --version
Usage
Automatic Cache Clearing
The plugin automatically clears all caches when:
- A post is saved or updated
- Content changes are published
Manual Cache Clearing
Copia Digital users (with @copiadigital.co email addresses) will see a "Clear Cache All" option in the WordPress admin bar for manual cache clearing.
Caches Cleared
- WordPress object cache:
wp cache flush - Polylang cache:
wp pll cache clear - W3 Total Cache (if installed)
- Blade view cache
Development
File Structure
clear-cache-all/
├── src/
│ └── Caches/
│ └── ClearAllCaches.php
├── wp-cli.phar
└── README.md
Support
For issues and feature requests, please contact Copia Digital.
License
Proprietary - Copia Digital