C

cachebuster

By JP DeVries (dinocorn)


A simple plugin that is handy for ensuring assets load fresh by generating a truly unique number.

Now use cachebuster to set an optional placeholder to be used for consecutive cache-busting!

[[$smartcache? &m=`cb=` &placeholder=`cbtime`]] will output something like cb=1362093673.

You'll then have a [[+cbtime]] placeholer to use in any of your Templates with the value of 1362093673.

Examples:

Let's say we always want a particular JavaScript file or AJAX request to load from the server. Just call the smartcache Chunk. If the Cache Bust System Setting is true, a truely unique string will be returned. Otherwise, your site version will be returned for cache control (ex 0.1)

Thanks for using cachebuster!

JP DeVries

mail@devries.jp

JP DeVries


New in cachebuster 1.3.0

Changelog for cachebuster integration into MODx Revolution.

cachebuster 1.3.0

====================================

 - created buildscript

 - added to GitHub

cachebuster 1.2

====================================

 - add option to set result of [[!cachebuster]] to a desired placeholder

cachebuster 1.1

====================================

 - adds smartcache Chunk which, controlled by cb.cachebust System Setting, will output either a cache busted string or your sites version for cache control

cachebuster 1.0

====================================

 - initial commit

More

Information

Released
March 3, 2013
Supported Versions
2 – 2.3
Downloads
1,925
License
GPLv2

More from JP DeVries

W
Wool

A typographic crime-stopping snippet for MODX 2.x. View the README…

View
Hits

Hits tracks pagehits with a punch. With hits you can easily counts…

View
QuickBar

Adds an Evo style hover bar to the top of your site for quick editing.…

View
boilerX

Makes HTML5 Boilerplate just a click away and adds some clever settings.

View