plugin-icon

Super Light Cache Buster

Stop page & browser caching with random version numbers and Cache-Control directives.
평가
5
최근 업데이트일
March 18, 2024
버전
1.4.1
활성화된 설치 항목
700

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

무료Creator 요금제에서
활성화된 설치 항목
700
테스트된 버전
6.5.5
이 플러그인은 다운로드 가능하며 워드프레스 독립 호스트 설치에 사용할 수 있습니다.