BBD Busted

A minimal weight, super simple cache buster for ExpressionEngine 3

Get It Now

 

Compatibility: ExpressionEngine 3,.

 

Or check it out here:

The Busted Plugin simply helps you with your development by providing a simple automated cache busting process for your files.

Busted will take your files and use a modified timestamp from the last time the files were modified to rename the file with appended made timestamp.

Even though this plugin saves you so much time and headache, it is a very basic plugin and simple to use.

There are a total of 2 parameters available to you as a user/developer:

  1. $file (Required)
  2. $marker (Optional)

Busted takes your flat file declaration and builds a timestamp based, cache busted declaration.

Original:

<link rel="stylesheet" href="/css/custom.css">

With Busted:

<link rel="stylesheet" href="{exp:busted file='/css/custom.css'}">

This generates something that looks like the following:

<link rel="stylesheet" href="/css/custom.css?busted=1470518390">

You can change your marker to be whatever you like. If you work in a team and want to mark who changed the file last, you can simply change your local version to reflect that like this:

<link rel="stylesheet" href="{exp:busted file='/css/custom.css'} marker='Brian'">

This would output the following:

<link rel="stylesheet" href="/css/custom.css?Brian=1470518390">