Purge all of the WordPress caches
- major refactoring and security hardening
- Multisite network
sitemeta
transients now cleared (for super admins only) - added total deleted row count to cleared transients success message
- added dynamic nonce helper with static caching for AJAX
- replaced
sanitize_text_field()
withsanitize_key()
for AJAX request - improved capability fallback logic via
get_clear_caches_capability()
helper - restricted Nginx cache deletion to known safe paths (supports SlickStack, EasyEngine, WordOps, and more)
- updated Nginx deletion logic with stricter realpath + validation
- improved JS modal UX (ARIA tags, better namespaces, more WordPress-native CSS styling)
- improved JS modal security (gracefully degrades if
clearCachesData
is missing, escapes messages with.text()
now to prevent HTML injection) - added
wp_die()
after allwp_send_json_*()
responses - added
Requires PHP
plugin header - added
Tested up to
plugin header - added
Update URI
plugin header - added
Text Domain
plugin header
- fixed
gu_override_dot_org
snippet
- fixed enqueue of jQuery both frontend and backend
- completely refactored to WordPress coding standards
- now supports multiple object cache softwares (Memcached, Memcache, Redis, Predis, Relay Cache, and default WordPress object cache)
- now supports clearing (deleting) database transients
- better messaging in case of success or failure in each cache module
- better verification of actual flushing in certain modules
- new defined constant
CLEAR_CACHES_MIN_CAPABILITY
- new defined constant
CLEAR_CACHES_TRANSIENTS
- supports PHP 7.0 to PHP 8.3
- supports Multisite
- fixed fatal error (missing bracket)
- fixed undefined variable error (new default $modified = false)
- tweaked spelling of various buttons
- tested with WP 5.1
- PBP v1.2.0
- AUTOMATIC_UPDATE_PLUGINS
- simplied settings page to be single page (no tabs)
- new button
Save Nginx Path
- popup modal outputs the Nginx path when caches are cleared
- changed plugin name from Purge Them All to Clear Caches
- PBP v1.1.1
- defined constant
CLEAR_CACHES
- defined constant
CLEAR_CACHES_NGINX
- defined constant
CLEAR_CACHES_NGINX_PATH
- defined constant
CLEAR_CACHES_OBJECT
- defined constant
CLEAR_CACHES_OPCACHE
- removed all CloudFlare integration
- (focus going forward will be on-server caches only)
- initial release
- uses PHP namespaces
- object-oriented codebase