Caching and a Faster Site: WP Rocket, LiteSpeed Cache, W3 Total Cache and WP Super Cache

How caching plugins work and what sets four of the most common apart. Plus what to check before you blame the plugin.

When a visitor opens a page in WordPress, the server runs PHP and queries the database to build the page. A caching plugin saves the finished result as a plain file and serves it to the next visitor, which is normally much faster. It is often the single biggest improvement you can make to speed.

The four plugins

  • WP Rocket – a paid plugin known for good results with few settings. Page caching, CSS and JavaScript optimization and lazy loading of images are all in one interface.
  • LiteSpeed Cache – free and very feature-rich. The server-side caching requires your host to run a LiteSpeed server, while some optimizations can be used even without it.
  • W3 Total Cache – one of the older plugins, with many settings for different types of cache. A free and a paid version are available.
  • WP Super Cache – a simple free plugin that creates static files from your pages, developed by Automattic. Fewer options, but easy to get started with.

Comparison

PluginModelSettingsKeep in mind
WP RocketPayment requiredFew, simpleLicense for updates and support
LiteSpeed CacheFreeManyBest effect on LiteSpeed servers
W3 Total CacheFree and paid versionsVery manyEasy to misconfigure
WP Super CacheFreeFewMore limited feature set

Check with your host first

Many hosts have their own server-side cache, and a caching plugin on top can then cause double caching or conflicts. Ask your host which cache is already enabled and what they recommend. Run only one caching plugin at a time.

Caching doesn’t solve everything

If the site is slow because the theme is heavy, the images are too large or the server is underpowered, caching only helps partially. And dynamic pages, such as checkout, cart and logged-in users, should normally not be cached. Good plugins have exclusions for this, but check that they are set up correctly for your particular shop or members area.

How we test

  1. Measure first: run a test with a tool such as PageSpeed Insights or WebPageTest and note the result.
  2. Enable caching with the default settings and measure again.
  3. Turn on extra optimizations, such as combining CSS and JavaScript, one at a time. Each time, check that the site still looks right and works.
  4. Test forms, checkout and login as both a logged-out and a logged-in visitor.

Our tip

Start carefully. Page caching gives the biggest gain, and aggressive script optimization is what most often breaks. Better a stable site that is slightly slower than a fast site where the form has stopped working. Clear the cache after major changes and after theme and plugin updates.

Make sure you have a backup before changing cache settings, and that you know how to disable the plugin if something goes wrong. If the plugin writes to server files, such as .htaccess, an incorrect setting can make the whole site unavailable. Document which settings you have changed, so that the next person who takes over understands why the site behaves the way it does.

A Greater Star

Need help with your WordPress site?

The people behind this site build and look after WordPress sites every day at A Greater Star – new sites, custom plugins, support agreements, hosting, security and speed.