Super Light Cache Buster

Stop browser caching by randomizing asset version numbers.

Author:Mwale Kalenga (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:6.5.2
Plugin version:1.4.1
Added to WordPress repository:24-06-2020
Last updated:18-03-2024
Rating, %:100
Rated by:7
Plugin URI:
Total downloads:8 071
Active installs:600+
plugin download
Click to start download

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. ????

Available Hooks

Cache Buster is becoming more developer friendly. Below you can find the plugin’s first hooks and details about them.

slcb_allow_in_backend
  • Filters whether Cache Buster should run (randomize asset version numbers) in the back end.
  • Return true to enable Cache Buster. false is the default.

slcb_version_name
  • 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 2.0.1.
  • 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.

Feedback


FAQ
ChangeLog