• MODX.com

    1,798 downloads

cachebuster

cachebuster is an extra by dinocorn, first released on 2013-03-03.

Package Description

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

Usage/Installation Instructions

Simply install via Package Manager. Call the smartcache chunk and use the System Settings to control whether or not assets should be cache busted (always load fresh from server) or cache controlled by site version.

Details

Developer(s)
dinocorn
Released
2013-03-03
First seen
2013-03-03
License
GPLv2
Supported databases
MySQL SQL Server
Minimum MODX Requirement
2

cachebuster Releases

Vendor Signature Released on
MODX.com 1.3.0-pl 2013-03-03 (5 years ago)