Warning: Use of undefined constant Y - assumed 'Y' (this will throw an Error in a future version of PHP) in /srv/users/heartburst/apps/alistercameron/public/res/plugins/big-head.php on line 43

Warning: count(): Parameter must be an array or an object that implements Countable in /srv/users/heartburst/apps/alistercameron/public/app/wp-includes/post-template.php on line 284

Alister Cameron // Blogologist

Changing the world. One blog(ger) at a time.

WordPress Plugin: CSS Cache Buster

Thanks to Matt for prodding me to take the CSS cache buster code I posted about a couple of days ago, and turn it into a filter.

I decided to go one better and make it a plugin, for those who are intimidated by code or just pressed for time.

So here’s the current readme, which is short and to-the-point (so unlike me!):

CSS Cache Buster does one very simple but very powerful thing: it ensures that your WordPress blog delivers the very latest version of your CSS stylesheet to your visitors, no matter how often or how rarely you edit your CSS.

You no longer need to worry that you’ve made a CSS change that others won’t see because of caching issues at their end.

Technically, this plugin automatically appends a last-modified date/timestamp to the end of your stylesheet url.

And since this feature is applied as a filter, you don’t have to touch your theme files. It just works.


If that makes sense to you — and if you’re a developer I sure hope it will — here’s the big fat download button:

Click here to download

This plugin live here, and on this page:



The CSS Cache Buster plugin is installed in the standard way:

  1. Download the plugin and unzip the contents (the php file and the readme.txt file)
  2. Upload `css-cache-buster.php` to the `/wp-content/plugins/` directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. That’s it! Nothing else to do. Breathe a long sigh.


  • 12 Sep. 2008 — v0.5 beta
    Initial release
Reblog this post [with Zemanta]


Note: Commenter website links are not no-followed, in case
you were wondering... I believe in rewarding commenters!

  1. Posted 8 years, 6 months ago // Permalink

    This plugin IS exactly what I need thank you so HUGE, I’ll blog about this plugin & link to your page! Oh I am so excited because now I don’t need Proxy sites to display the actual interface after I made many changes on my Style.css file!

  2. Posted 7 years, 11 months ago // Permalink

    Thank you for the plug! It is very urgent for absolutely any version of WordPress.
    Frank, thanks for the helpful comments!

  3. Posted 7 years, 10 months ago // Permalink

    CSS Cache Buster does one very simple but very powerful thing. It ensures that your WordPress blog delivers the very latest version of your CSS stylesheet to your visitors, no matter how often or how rarely your edit for CSS.

  4. Posted 7 years, 10 months ago // Permalink

    hmmm, love the plugin, but I have multiple stylesheets and this only seems to work for the main stylesheet referenced by ‘stylesheet_url’. Any thoughts to adapting this to the ”stylesheet_dir’ variable?

  5. Posted 7 years, 1 month ago // Permalink

    Thanks for the big fat download button buddy!

10 Trackbacks/Pingbacks

  1. […] Alternatively use this plugin […]

  2. […] 达人Matt给他提了个建议,让他使用filter来实现这个,这样,每个主题都会因为这个而受益。结果这个小老外就去写了一个插件,叫做CSS Cache Buster(点击链接,查看插件页面,下载插件)。 […]

  3. […] (I guess this would work with any other cached files e.g. JavaScript too). I ran across it here: http://www.alistercameron.com/2008/09/12/wordpress-plugin-css-cache-buster/ whilst in the world of […]

  4. […] WordPress does not have to load the data for each of them each time a post or comments are viewed. CSS Cache Buster is one good plugin for developers.  If you like to tinker with your CSS files, testing out new […]

  5. […] CSS Cache Buster SAVE […]

  6. […] So, if you are having the same problem as I had, you can use CSS Cache Buster plugin by Alister Cameron. Download CSS Cache Buster. […]

  7. […] I stumbled upon this module for WordPress, does drupal have a similar one: http://www.alistercameron.com/2008/09/12/wordpress-plugin-css-cache-buster/ […]

  8. […] to their current location. For details on how to use this plugin visit Breadcrumb NavXT.  CSS Cache Buster 1.0» Alister Cameron // Blogologist (url)CSS Cache Buster does one very simple but very powerful […]

  9. […] CSS Cache Buster – CSS Cache Buster is a simple but powerful plugin. It is a really great plugin for […]

Post a Comment

Your email is never published nor shared. Required fields are marked *

  • My Posts in Your In-box!

    Enter your email address here for instant updates in your inbox, whenever I post something new.
    Your email address is in safe hands. Relax!
© Copyright 2008 Alister Cameron. All Rights Reserved Theme // Sitemap // RSS