WP Roids


Fast AF caching! Plus minifies your site’s HTML, CSS & Javascript

13 February 2017 ~ Version 2.2 Released!

Tweaks to CSS/Javascript minification code – was freaking out at base64 strings containing //s

Getting Started

No complicated settings to deal with;

  1. Deactivate/delete any current caching or minification plugins
  2. Install WP Roids
  3. Activate WP Roids
  4. Log out
  5. Refresh your home page TWICE

“It broke my site, arrrrrrgh!”

Do the following steps, having your home page open in another browser. Or log out after each setting change if using the same browser. After each step refresh your home page TWICE

  1. Switch your site’s theme to “Twenty Seventeen”. If it then works, you have a moody theme
  2. If still broken, disable all plugins except WP Roids. If WP Roids starts to work, we have a plugin conflit
  3. Reactivate each plugin one by one and refresh your home page each time time until it breaks
  4. Log a support topic and tell me as much as you can about what happened

How Fast Is It?

In testing, WP Roids was FASTER than:

  • WP Super Cache
  • W3 Total Cache
  • WP Fastest Cache
  • Comet Cache
  • …and many more!

See the screenshots tab for test results

Where Can I Check Site Speed?

Either of these two sites is good:

Software Requirements

In addition to the WordPress Requirements, WP Roids requires the following:

  • .htaccess file to be writable

    some security plugins disable this, so just turn this protection off for a minute during install/activation

  • PHP version greater than 5.4

    It WILL throw errors on activation if not! No damage should occur though

  • PHP cURL extension enabled

    Usually is by default on most decent hosts

Under The Hood

WP Roids decides which Pages and Posts are suitable for caching and/or minification of HTML, CSS & Javascript.

For caching and minification of CSS & Javascript, the rules generally are:

  • User is not logged in
  • User doesn’t have an active WooCommerce basket, even in not logged in
  • Current view is a Page or Post (or Custom Post Type)
  • Current view is NOT an Archive i.e. list of Posts (or Custom Post Types)
  • Current view has not received an HTTP POST request e.g. a form submission
  • Current view is not a WooCommerce Basket/Checkout page

If any of the above rules fail, WP Roids will simply just minify the HTML output. All else gets the CSS & Javascript combined and minified (and requeued), then the Page/Post HTML is minified and a static .html file copy saved in the cache folder.

The cache automatically clears itself on Page/Post changes, Theme switches and Plugin activations/deactivations

WP Roids can also detect if you have manually edited a Theme CSS or Javascript file and will update iteself with the new versions


Copyright: © 2017 Philip K Meadows (coded in Great Britain)

Released under the terms of the GNU General Public License

Credits / Additional Acknowledgments


  • Baseline - no caching applied
  • Cachify
  • W3 Total Cache
  • WP Super Cache
  • Simple Cache
  • Comet Cache
  • Cache Enabler
  • WP Fastest Cache
  • WP Roids - not bad, eh?


NOTE: WP Roids requires the .htaccess file to have permissions set to 644 at time of activation. Some security plugins (quite rightly) change the permissions to disable editing. Please temporarily disable this functionality for a moment whilst activating WP Roids.

The quickest and easiest way to install is via the Plugins > Add New feature within WordPress®. But if you must, manual installation instructions follow…

  1. Download and unzip the latest release zip file.
  2. If you use the WordPress plugin uploader to install this plugin skip to step 4.
  3. Upload the entire plugin directory to your /wp-content/plugins/ directory.
  4. Activate the plugin through the ‘Plugins’ menu in WordPress Administration.


Is WP Roids compatible with iThemes Security?

Yes. But if you have .htaccess protected (Security > Settings > System Tweaks), you will need to disable this when activating WP Roids. You can re-enable it after activation

Is WP Roids compatible with Jetpack?


Is WP Roids compatible with Yoast SEO?


Is WP Roids compatible with WooCommerce?


Is WP Roids compatible with Storefront Theme for WooCommerce?


Is WP Roids compatible with Storefront Pro (Premium) plugin for WooCommerce?


Is WP Roids compatible with WPBakery Visual Composer?


Is WP Roids compatible with Page Builder by SiteOrigin?


Is WP Roids compatible with Genesis Framework and Themes?

Yes. Though I have only tested with Metro Pro theme

Is WP Roids compatible with the “Instagram Feed” plugin?

Yes, but you must tick the “Are you using an Ajax powered theme?” option to “Yes”

Is WP Roids compatible with the “Disqus Comment System” plugin?


Is WP Roids compatible with the “Visual Form Builder” plugin?


Is WP Roids compatible with the “Simple Share Buttons Adder” plugin?


Is WP Roids compatible with Cloudflare?

Yes, but you may want to flush your Cloudflare cache after activating WP Roids. Also disable the minification options at Cloudflare

Does WP Roids work on NGINX servers?

Maybe. See this support question

Does WP Roids work on IIS (Windows) servers?

Probably not


Fastest Cache but my Images disappear

It works straight out of the box on tag div Newspaper theme, Very impressed because it does the job of Two plugins. This is the fastest Cache plugin I have seen. UPDATE I spoke too soon all my Images disappeared.
It was looking like it was going to be a good plugin until I notice no updates which is worrying. Has the Owner given up on this plugin it would be great to know? I suggest giving people some option like minification which break some themes. This Could be the best Plugin if the owner updated and change some options.

Twenty Seventeen – much faster – GREAT JOB done

My Website: www.Die-Familienkanzlei.com
Theme: Twenty Seventeen

Old Cache Plugin: WP Fastest Cache in combination with Autoptimize:
Pingdom Speed= Performance Grade= B Load Time= 400ms Requests=12

With WP-Roids “out of the box” and WP Fastest Cache+ Autoptimize deactivated:
Pingom Speed= performance Grade= A Load Time= 289ms Requests=18

In addition, I use the following plugins to make the site faster and smaller, as I don’T use the site as a blog = Plugins= Disable Comments, Disable Emojis, Disable Feeds, Remove Query String from Static Ressources, WP Optimize.

My Comment: Very fast tool. GREAT JOB done! Everything works “out-of-the-box”.

Wow, the best caching plugin I have tried so far

I am really impressed. Just thought I would try something new. I had to deactivate the other caching/optimizing plugins that were installed before otherwise wp roids could not be activated. But once activated page speed was better than ever before. Thanks a lot for your work. I trust this plugin will become very popular. The best caching plugin I have tried so far. Thumbs up!

Nice Work!


Just wanted to reach out and give credit where credit is due…WP Roids is quick becoming a nice addition to my list of mandatory installs during WP Theme setup. You did a great job developing this plugin. I look forward to seeing, testing, and using more of your products.

Read all 21 reviews

Contributors & Developers

“WP Roids” is open source software. The following people have contributed to this plugin.


Translate “WP Roids” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Improved: Regex for stripping CSS and Javascript comments rewritten and separated

    • The Javascript one, in particular, was treating base64 strings containing two or more // as a comment and deleting them
  • Improved: Fallback serving of cache files via PHP when .htaccess has a hiccup was sometimes pulling single post file on achive pages :/


  • Fixed: Regex tweak for handling data:image background images in CSS

  • Fixed: Regex tweak where some base64 encoded strings containing two or more / being stripped believing they were comments


  • Fixed: There is a teeny-tiny glitch in WPBakery’s Visual Composer that was causing massive display errors

  • Improved: Negated the need to deactivate and reactivate to remove v1 .htaccess rules

  • Improved: HTML <!-- WP Roids comments --> with better explanations

  • Improved: Some additional cookie and WooCommerce checks


  • Minor Fix: Code to remove v1 rules from .htaccess DEACTIVATE AND REACTIVATE WP ROIDS ASAP


  • Fixed: CSS and Javascript minifying and enqueuing had issues with:

    • Some inline items were being missed out or rendered improperly
    • Absolute paths to some assets such as images and fonts loaded via @font-face were sometimes incorrect
    • Some items were queued twice
    • Some items were not queued at all!
  • Fixed: HTML minification was sometimes removing legitimate spaces, for example between two <a> tags

  • Fixed: Caching function was sometimes running twice, adding unecessary overhead

  • Improved: Some .htaccess rules

  • New: Function checking in background .htaccess content is OK, with automatic/silent reboot of plugin if not
  • New: Additional explanatory HTML <-- comments --> added to bottom of cache pages


  • Fixed: Issue with PHP is_writable() check on .htaccess was causing plugin to not activate at all or silently deactivate upon next login


  • Fixed: Regex to remove inline JS comments was failing if no space after //
  • Imprevement: Compatability check when activating new plugins. On failure automatically deactivates WP Roids and restores .htaccess file


  • Fixed: .htaccess rewritebase error, was killing some sites dead AF, sorry


  • Fixed: .htaccess PHP fallback has conditions checking user not logged in
  • Fixed: WordFence JS conflict fixed


  • Disabled the debug logging script, you don’t need me filling your server up!


  • Fixed: Directories and URLs management for assets
  • Fixed: Localized scripts with dependencies now requeued with their data AND new cache script dependency


  • Fixed: Combining and minifying CSS and Javascript MASSIVELY IMPROVED!
    • For CSS, now deals with conditional stylesheets e.g. <!--[if lt IE 9]>, this was causing a few hiccups
    • For Javascript, now deals with scripts that load data via inline <script> tags containing /* <![CDATA[ */
    • Minification process now does newlines first, then whitespace. Was the other way around, which could cause issues


  • Fixed: Sorry, I meant site domain !== FALSE. I’m an idiot, going to bed


  • Fixed: Removed googleapis.com = FALSE check of v1.1.1 and replaced with site domain = TRUE check
  • Fixed: Check for WooCommerce assets made more specific to WC core only, now excludes “helper” WC plugins


  • Fixed: Version numbering blip


  • Fixed: Encoding of .htaccess rules template changed from Windows to UNIX as was adding extra line breaks
  • Fixed: Additional check to avoid googleapis.com assets being considered “local”
  • Fixed: Removed lookup of non-existent parameter from “Flush Cache” links


  • “Flush Cache” links and buttons added
  • Five minutes applied to browser caching (was previously an hour)
  • Whole HTML cache flush on Page/Post create/update/delete, so that home pages/widgets etc. are updated
  • Fixed: PHP Workaround for hosts who struggle with basic .htaccess rewrites :/ #SMH
  • Fixed: Additional checks before editing .htaccess as sometimes lines were being repeated, my bad
  • Fixed: For you poor souls who are hosted with 1&1, a bizarre home directory inconsistency
  • Fixed: Scheduled task to flush HTML cache hourly wasn’t clearing properly on deactivation


  • Initial release