Can’t see the changes supposedly made by your developer? Or maybe you’re just tired of your site’s annoying cache? Use this plugin to cache a break!
With a compressed size of under 30KB, this simple plugin adds random version numbers to CSS & JS assets to prevent browser caching getting in the way of your happiness.
Super Light Cache Buster also prevents page caching by using Cache-Control directives.
You can completely disable the plugin from the settings page when you are not using it or keep it enabled if the site is under development. 😀
Cache Buster is becoming more developer friendly. Below you can find the plugin’s first hooks and details about them.
- Filters whether Cache Buster should run (randomize asset version numbers) in the back end.
trueto enable Cache Buster.
falseis the default.
- Filters the version name for assets to allow using a custom version name (or number).
- Return the version name e.g. you can use the value
- When this filter is in use, version numbers will not be randomized. Instead, you will have to change the version name manually to rename assets.
- This filter overrides the “Version Name” setting in the dashboard.
- The provided version name must be a valid query parameter. As a safety, if the provided string breaks any URLs, it will not be used.
- Upload the entire
super-light-cache-busterfolder to the
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Clear all caches on your site and server (hosting).
- Cache a break from caching :-).
Do I have to clear my cache for the plugin to work?
Yes, you should clear your cache(s)! This plugin doesn’t clear pages that have already been cached (coming soon, shhh).
If you are still being served cached pages after activating the plugin, clear the cache at least once.
This will delete all pages/posts from the cache, and Cache Buster will prevent them from being cached again while the plugin is enabled :-).
Does this plugin work on Multisite?
No, Cache Buster hasn’t been tested on Multisite Networks.
Contributors & Developers
“Super Light Cache Buster” is open source software. The following people have contributed to this plugin.Contributors
Release Date – October 17, 2023
- Introduce the “Version Name” setting to allow using a custom version name instead of a random one.
- Apply a filter to the Version Name setting to allow overriding it.
- Improve code architecture.
- Add a link to SLCB settings next to the plugin description on the plugins screen.
Release Date – June 3, 2023
- Introduce a button to refresh the page without caching.
- Apply a filter to determine whether Cache Buster runs in the wp-admin area.
Release Date – November 13, 2022
- Introduce Internationalization (Make Cache Buster translatable).
- Introduce a notice to clear the cache when settings are saved.
- Patch XSS vulnerability.
- Patch File-Handling vulnerability.
- Improve inline code documentation.
- Improve WordPress Coding Standards conformance.
Release Date – September 29, 2022
- Fix warning/error thrown when Cache Buster is uninstalled.
- Use a static method when register_uninstall_hook is invoked.
Release Date – May 06, 2022
- Don’t randomize asset version numbers in the admin area.
- Hide Cache Buster’s status from non-admins.
Release Date – April 25, 2022
- Introduce plugin settings to enable/disable cache prevention and control its intensity.
- Introduce a menu item to show Cache Buster’s status in the admin bar.
- Delete database options when Cache Buster is uninstalled.
- Improve overall code efficiency.
Release Date – June 24, 2020
- Initial release