Description
Anti-Cache Emergency Kit is the ultimate tool for WordPress developers and designers who need to bypass all caching mechanisms during development, testing, or troubleshooting.
⚠️ Development Tool Only – Do NOT leave active on production sites!
Key Features
🔧 Comprehensive Cache Management
* Automatically detects and flushes major cache plugins
* Temporarily deactivates cache plugins during development (user can easily reactivate)
* Clears object cache (Redis, Memcached)
* Clears OPcache and hosting-specific caches
* Prevents browser caching for administrators
🛠 Debug Mode Activation
* Creates automatic backup of wp-config.php before any changes
* Safely modifies wp-config.php using WordPress Filesystem API
* Automatically enables WP_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY
* Disables WordPress cache (WP_CACHE = false)
* Shows PHP errors and warnings for troubleshooting
* Automatically restores original wp-config.php on deactivation
🛠️ Maintenance Mode
* Optional simple maintenance screen for non-logged users
* Prevents visitors from seeing development errors
* Quick toggle from admin bar
* Customizable maintenance message
Admin-Only Impact
* All anti-cache measures only affect logged-in administrators
* Regular visitors see the normal cached site (unless maintenance mode is enabled)
* Perfect for live site development
Smart Management Panel
* View current status and active features
* Easy one-click reactivation of cache plugins
* Manual cache clearing options
* Clear overview of what was changed
Supported Cache Plugins
- WP Rocket
- W3 Total Cache
- WP Super Cache
- WP Fastest Cache
- LiteSpeed Cache
- SiteGround Optimizer
- WP Optimize
- Hummingbird (WPMU DEV)
- Breeze (Cloudways)
- Autoptimize
- Cache Enabler
- Surge
- Redis Object Cache
Supported Hosting Caches
- SiteGround hosting cache
- Cloudflare (when plugin is active)
- Generic hosting cache systems
How It Works
- Backup: Creates automatic backup of wp-config.php
- Activation: Automatically flushes and deactivates all detected cache plugins
- Debug Mode: Enables WordPress debug mode and disables WP_CACHE in wp-config.php
- Anti-Cache Headers: Sends no-cache headers to admin users
- Asset Versioning: Adds random versions to CSS/JS files for admins
- Maintenance Mode: Optional simple screen for non-logged users
- Deactivation: Restores original wp-config.php from backup
Use Cases
- Testing theme or plugin updates
- Troubleshooting white screens or errors
- Developing new features without cache interference
- Checking design changes in real-time
- Debugging PHP errors and warnings
- Safe development on live sites
Security & Safety
- Automatic backup of wp-config.php before modifications
- All changes only affect administrator users
- Automatic restoration of original configuration on deactivation
- Secure nonce verification for all actions
- No database modifications beyond options
- Compatible with WordPress multisite
How to Test Plugin Features
After activating the plugin, verify each feature is working correctly:
Debug Mode Testing
- Check wp-config.php: Look for the debug constants added by the plugin
- Verify backup: Check
/wp-content/plugins/anticache/backup/wp-config-backup.phpexists - Trigger a PHP error: Add
<?php echo $undefined_variable; ?>to a theme file - Verify error display: You should see PHP errors on the frontend (admin only)
- Check debug log: Look for
/wp-content/debug.logfile creation - Test error logging: Errors should be logged to the debug.log file
- Check WP_CACHE: Verify
WP_CACHEis set tofalsein wp-config.php
Cache Plugin Deactivation Testing
- Before activation: Note which cache plugins are active in Plugins page
- After activation: Verify cache plugins are deactivated
- Check admin notice: Should list which plugins were deactivated
- Visit settings page: Go to Tools > Anti-Cache Kit to see deactivated plugins list
- Test reactivation: Use the «Reactivate All Cache Plugins» button
Browser Cache Prevention Testing
- Make a CSS change: Modify your theme’s style.css
- Hard refresh: Ctrl+F5 or Cmd+Shift+R should show changes immediately
- Check page source: Look for random version numbers on CSS/JS files
- Verify headers: Use browser dev tools to check for no-cache headers
- Test as visitor: Log out – visitors should still see cached version
Object Cache Testing
- Install Redis/Memcached: If using object caching
- Check cache status: Use Redis CLI or monitoring tools
- Verify clearing: Cache should be flushed when plugin activates
- Manual clear: Test the «Manual Cache Clear» button in settings
Maintenance Mode Testing
- Enable maintenance: Go to Tools > Anti-Cache Kit and enable maintenance mode
- Test as visitor: Open an incognito/private window and visit your site
- Verify maintenance page: Should see the maintenance screen
- Test as admin: Logged-in admins should bypass maintenance mode
- Quick toggle: Use the admin bar toggle for quick on/off
Hosting Cache Testing
- SiteGround users: Check SG Optimizer cache is cleared
- Cloudflare users: Verify Cloudflare cache is purged (if plugin installed)
- Manual verification: Check your hosting control panel for cache status
- Performance testing: Use GTmetrix or similar to verify cache clearing
Overall Functionality Testing
- Make theme changes: Modify CSS, PHP, or JavaScript files
- Check immediate visibility: Changes should be visible without hard refresh
- Test error display: Broken code should show errors immediately
- Verify admin-only: Log out to confirm visitors see normal cached site
- Check HTML comments: Look for «AyudaWP Anti-Cache Kit» comment in page source
Backup and Restoration Testing
- Check backup creation: Verify backup file exists after activation
- Note original wp-config.php: Take note of original configuration
- Deactivate plugin: Deactivate Anti-Cache Kit
- Verify restoration: Check that wp-config.php is restored to original state
- Backup cleanup: Verify backup file is removed after successful restoration
Testing Checklist
- wp-config.php backup is created automatically
- Cache plugins are deactivated and listed in admin
- Debug mode is enabled (WP_DEBUG, WP_DEBUG_LOG, WP_DEBUG_DISPLAY)
- WP_CACHE is set to false in wp-config.php
- CSS/JS changes are immediately visible to admins
- Random versions are added to asset URLs for admins
- PHP errors are displayed to admins only
- Maintenance mode works for non-logged users
- Admin bar toggle functions correctly
- Settings page is accessible at Tools > Anti-Cache Kit
- Manual cache clear button works
- Plugin reactivation feature works
- HTML comment appears in page source for admins
- No-cache headers are sent to admin users only
- Original wp-config.php is restored on deactivation
If any feature isn’t working, check the debug.log file for error messages or contact support.
Developer Information
Hooks and Filters
ayudawp_anticache_maintenance_data– Filter to customize maintenance page dataayudawp_anticache_cache_plugins– Filter to modify the list of supported cache plugins
Constants
AYUDAWP_ANTICACHE_VERSION– Plugin versionAYUDAWP_ANTICACHE_PLUGIN_DIR– Plugin directory pathAYUDAWP_ANTICACHE_PLUGIN_URL– Plugin directory URL
Code Example
Customize maintenance page:
add_filter( 'ayudawp_anticache_maintenance_data', function( $data ) {
$data['heading'] = 'Custom Maintenance Message';
$data['message'] = 'We are updating our awesome website!';
$data['accent_color'] = '#ff6b6b';
return $data;
});<h3>Support</h3>
Need help or have suggestions?
Love the plugin? Please leave us a 5-star review and help spread the word!
About AyudaWP
We are specialists in WordPress security, SEO, and performance optimization plugins. We create tools that solve real problems for WordPress site owners while maintaining the highest coding standards and accessibility requirements.
Screenshots
Installation
- Upload the plugin files to
/wp-content/plugins/anticache/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- The plugin will automatically flush caches and enable debug mode
- Visit Settings > Anti-Cache Kit to manage options
- Important: Deactivate when finished developing!
FAQ
-
Is this safe to use on a live website?
-
Yes, but with important caveats:
* Only administrators are affected by the anti-cache measures
* Regular visitors continue to see the cached site normally
* Use maintenance mode to hide development from visitors
* Always deactivate when finished developing
* Never leave active long-term on production sites
* Automatic backup ensures wp-config.php can be restored -
Which cache plugins are supported?
-
The plugin supports all major WordPress cache plugins including WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache, SiteGround Optimizer, WP Optimize, Hummingbird, Breeze, Autoptimize, Cache Enabler, Surge, Redis Object Cache, and many more. See the full list in the description.
-
What happens to my wp-config.php file?
-
The plugin creates an automatic backup before making any changes:
- Backup is stored in
/wp-content/plugins/anticache/backup/wp-config-backup.php - Original wp-config.php is automatically restored when you deactivate the plugin
- If backup restoration fails, the plugin falls back to manual cleanup
- Your original configuration is always preserved
- Backup is stored in
-
What happens to my cache plugins?
-
Cache plugins are temporarily deactivated for development purposes only. This is necessary to prevent cache interference while you’re making changes to your site. The plugin:
- Only deactivates cache plugins that were active when Anti-Cache Kit was activated
- Keeps a record of which plugins were deactivated
- Provides easy one-click reactivation via Tools > Anti-Cache Kit
- Allows manual reactivation from the standard WordPress Plugins page
- Does not delete or modify cache plugin files or settings
This temporary deactivation is essential for the plugin’s core functionality – without it, cached content would prevent you from seeing your changes immediately.
-
Does it work with hosting cache systems?
-
Yes! The plugin also clears hosting-specific caches from providers like SiteGround, and integrates with Cloudflare when their plugin is active. It also clears object caches (Redis, Memcached) and OPcache.
-
Can I customize the maintenance page?
-
Yes, developers can use the
ayudawp_anticache_maintenance_datafilter to customize the maintenance page appearance, messaging, colors, and content. -
Will this affect my site’s performance?
-
Only for administrator users while the plugin is active. Regular visitors are unaffected (unless maintenance mode is enabled). The plugin is designed for temporary development use only.
-
What if I forget to deactivate it?
-
The plugin shows prominent warnings in the admin area reminding you to deactivate it. However, it’s designed to be safe even if left active, as it only affects administrators.
-
Does it work with object caching?
-
Yes, it clears Redis, Memcached, and other object cache systems, as well as OPcache when available.
-
Can I use it on WordPress multisite?
-
Yes, the plugin is compatible with WordPress multisite networks.
-
How do I know if it’s working?
-
Check the «How to Test Features» section below for detailed testing instructions.
-
What if my cache plugin isn’t supported?
-
Most major cache plugins are supported. If yours isn’t, you can manually deactivate it before activating Anti-Cache Kit, or contact us to add support for your specific plugin.
-
Can I reactivate cache plugins without deactivating Anti-Cache Kit?
-
Yes! Go to Tools > Anti-Cache Kit and use the «Reactivate All Cache Plugins» button. However, this may hide your development changes again.
-
Does it work with CDN services?
-
The plugin handles Cloudflare when the official plugin is active. For other CDNs, you may need to manually clear their caches from their respective control panels.
-
What happens to my debug logs?
-
Debug mode creates logs in
/wp-content/debug.log. The plugin automatically enables logging, so check this file for any PHP errors or warnings during development. -
Can I use this for debugging JavaScript or CSS issues?
-
Yes! The plugin prevents browser caching of CSS/JS files for administrators and adds random versions to force reloading, making it perfect for frontend debugging.
Reviews
Contributors & Developers
“Anti-Cache Emergency Kit” is open source software. The following people have contributed to this plugin.
Contributors“Anti-Cache Emergency Kit” has been translated into 1 locale. Thank you to the translators for their contributions.
Translate “Anti-Cache Emergency Kit” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
3.0.3
- Added automatic backup of wp-config.php before modifications
- Added WP_CACHE = false to disable WordPress cache
- Improved wp-config.php restoration on deactivation
- Enhanced security with proper backup and restore functionality
- Better error handling for wp-config.php operations
- Removes any existing cache-related definitions from wp-config.php
- Creates backup in /backup/ directory within plugin folder
- Automatic cleanup of backup file after successful restoration
- Added prominent settings link in plugins list with orange color and gear icon
- Improved activation notice with direct clickable link to settings
- Enhanced admin panel layout and card organization
- Better user experience with quick access to plugin settings
3.0.2
- Inline styles in maintenance file
3.0.1
- Added proper WordPress coding standards compliance
3.0
- Added comprehensive admin management panel
- Added optional maintenance mode for non-logged users
- Added support for more cache plugins (WP Optimize, Hummingbird, Breeze, Autoptimize)
- Added object cache clearing (Redis, Memcached, OPcache)
- Added hosting-specific cache clearing
- Added admin bar toggle for maintenance mode
- Improved security with proper nonce verification
- Enhanced plugin reactivation functionality
- Better error handling and logging
- Improved internationalization support
- Added proper WordPress coding standards compliance
- Enhanced UI/UX with modern admin interface
2.4
- Improved cache plugin detection
- Enhanced debug mode handling
- Better error reporting
- Added more cache plugin support
2.0
- Added asset versioning for administrators
- Improved wp-config.php handling
- Enhanced plugin deactivation process
- Better compatibility with newer WordPress versions
1.0
- Initial release
- Basic cache plugin detection and deactivation
- Debug mode activation
- Anti-cache headers for administrators





