Optimisation · Web Development

WordPress Cache Explained: How Caching Speeds Up Your Website

By Paul Hendley5 min read

8 October 2024

30 October 2026

Laptop on a timber desk lit by a warm lamp at night, set up for working on a WordPress site

WordPress cache is a stored, ready-made copy of your web pages and data, so your server doesn’t have to rebuild every page from scratch for every visitor. Without caching, WordPress runs PHP code and database queries each time someone loads a page. With caching, most visitors are served a saved copy almost instantly, which makes your site faster and helps it cope with more traffic.

Setting up a WordPress cache is one of the simplest and most effective ways to speed up your website. Below I’ll explain how it works in plain English, the different types of cache, how to set it up and the common mistakes to avoid.

How WordPress caching works

WordPress is a dynamic system. When someone visits a page, the server runs PHP code, asks the database for the content, settings and menus, assembles the HTML and sends it to the browser. That process is flexible, but it takes time and server resources, and it repeats for every single visit.

Think of a busy cafe. Making each coffee from scratch works fine when it’s quiet, but in the morning rush, anything that can be prepared ahead saves everyone time. Caching does the same for your website: it prepares pages and data ahead of time and serves the saved version until something changes.

Cafe worker beside stacks of ready takeaway cups, like a WordPress cache keeping pages ready to serve
Like a cafe preparing ahead for the morning rush, a page cache keeps pages ready to serve instantly.

The main types of WordPress cache

Page cache

The page cache is usually the most important type of WordPress cache. It saves the finished HTML of each page. The next visitor gets that file straight away, skipping PHP and database work. This usually has the biggest effect on load times and server response, and it’s what most caching plugins focus on.

Browser cache

Browser caching tells visitors’ browsers to keep files such as images, CSS, JavaScript and fonts for a set time. When someone visits a second page or comes back later, those files load from their own device instead of being downloaded again.

Object cache

The object cache stores the results of database queries in memory, using tools such as Redis or Memcached. It’s especially helpful for sites that can’t be fully page-cached, such as online stores, membership sites and busy sites with logged-in users. It usually needs support from your host.

Opcode cache

PHP code has to be compiled before it runs. An opcode cache (OPcache) keeps the compiled code in memory so it doesn’t need to be recompiled on every request. Most good hosts enable this by default.

Server and CDN caching

Many managed WordPress hosts run caching at the server level, which can be faster than a plugin. A content delivery network goes a step further, storing copies of your files, and sometimes whole pages, on servers around the world so they load from a location near each visitor. My guide to content delivery networks explains how they work.

How to set up a WordPress cache

  1. Check your host first. Many hosts include server-level caching and recommend (or require) a specific plugin. Using two page caching systems at once can cause conflicts.
  2. Choose one caching plugin. Popular options include WP Rocket, LiteSpeed Cache (for hosts running LiteSpeed servers), W3 Total Cache and WP Super Cache. Pick one that suits your hosting.
  3. Enable page caching and browser caching. These two settings deliver most of the benefit.
  4. Exclude dynamic pages. Cart, checkout and account pages on WooCommerce sites, and any personalised content, must not be cached for everyone.
  5. Turn on object caching if available. Ask your host whether Redis or Memcached is supported.
  6. Test thoroughly. Check forms, menus, logins and any shop functions in a private browser window after setting up your WordPress cache.
  7. Measure the difference. Compare PageSpeed Insights results before and after, focusing on mobile.
Long warehouse aisle of neatly stocked shelves, like stored copies of web pages in a cache
A cache stores ready-made copies of your pages and files so they don't have to be built for every visitor.

Common WordPress caching problems

  • “My changes aren’t showing.” You’re probably seeing a cached copy. Clear the WordPress cache in your plugin or hosting dashboard, and refresh your browser.
  • Running two caching plugins. Doubled-up caching often causes broken layouts or odd behaviour. Use one.
  • Caching the cart or checkout. Customers might see the wrong cart contents. Make sure these pages are excluded.
  • Over-aggressive optimisation. Combining or delaying scripts can break menus, sliders or forms. Turn options on one at a time and test.
  • Expecting caching to fix everything. It won’t solve oversized images, slow hosting or heavy scripts. Those need fixing directly, as I explain in my guide to website speed.

How caching helps Core Web Vitals

A good page cache reduces the time the server takes to respond, which helps the main content appear sooner and improves Largest Contentful Paint. Browser caching makes repeat visits and second pages faster. Caching on its own doesn’t fix responsiveness or layout shifts, but it’s an important foundation for passing Google’s Core Web Vitals.

When to clear your WordPress cache

Most caching plugins clear the relevant pages automatically when you publish or update content. You’ll still want to clear the whole WordPress cache manually after changing your theme, menus, widgets, global colours or fonts, after installing or updating plugins that affect the front end, and after moving the site to new hosting or a new domain. If you use a CDN, purge its cache at the same time so visitors don’t see an old version.

Frequently asked questions

What is cache in WordPress?

A WordPress cache is a saved copy of your pages, files or database results that can be served quickly instead of being generated from scratch on every visit, making your site faster.

Do I need a caching plugin for WordPress?

Most WordPress sites benefit from caching. If your host already provides server-level caching, you may not need a separate plugin, so check with your host before installing one.

How do I clear my WordPress cache?

Use the “clear” or “purge cache” option in your caching plugin or hosting dashboard, then refresh the page in your browser. If you use a CDN, you may need to purge its cache as well.

Is caching safe for WooCommerce stores?

Yes, as long as the cart, checkout and account pages are excluded from page caching. Most caching plugins recognise WooCommerce and exclude these pages automatically, but it’s worth checking.

Want a fast WordPress site without the guesswork?

Getting WordPress cache settings right, alongside good hosting and optimised images, is part of how we build fast websites for Gold Coast and Queensland businesses. If your site is slow, or you’re planning a new one, take a look at our web design services or get a free quote.

Paul Hendley

Written by

Paul Hendley

Paul runs Web Weavers on the Gold Coast and leads a small team of experienced web developers. With more than 20 years in web development, he personally oversees every website and SEO project. More about Paul.

Paul HendleyPaul HendleyWeb Weavers, Gold Coast

Need a website that wins work?

Talk to Paul about a new website, a redesign or SEO. Free quotes, plain answers.

Free homepage concept

See what a modern homepage could look like for your business, before you spend a cent.

Request yours

Work with Web Weavers

Want this done for your business?

Get a website that’s fast, found on Google and built to win enquiries. Our experienced web developers build it, and Paul oversees every detail. No jargon, no hand-offs.