Blog / WordPress /

WordPress caching explained: page, object and browser cache

You’ve compressed the images. You’ve cut the plugin list. The page still feels slow. Often the server is rebuilding the exact same page for every single visitor.

Caching fixes that by reusing work. But “cache” isn’t one switch. Page, object and browser caching solve different problems, and mixing them up makes diagnosis harder.

The plain version: page cache stores a ready-made copy of a page; object cache stores database query results; browser cache lets a visitor’s browser reuse files it already downloaded. I’d start with page caching on most small sites. The others matter when the site or its workload calls for them.

Page cache: keep a copy of the finished page

When a visitor requests a WordPress page, the server normally runs PHP, loads WordPress, queries the database and builds the HTML. A page cache stores the finished output so the next visitor can receive it without repeating all that work.

It’s often the biggest win for a blog or brochure site where everyone sees the same content. A caching plugin or the host may handle it. Some hosts cache at server level, and running another page cache on top without understanding the setup causes stale pages and confusing behaviour.

Not every page should be cached the same way. A logged-in dashboard, a cart or an account page needs fresh data. Shops need exclusions and cache rules that protect the customer experience. Test as a logged-out visitor and, where relevant, through the real purchase flow.

When content changes, the cache should clear or refresh. If an updated headline doesn’t appear, don’t immediately edit it again. Check whether the page cache is serving an old copy, then purge the relevant cache and retest.

Object cache: reuse database work

WordPress and its plugins often ask the database for information. An object cache stores the result of recurring queries so the site does not have to repeat the same work on every request. A persistent object cache, often backed by Redis or Memcached, can help a dynamic site with frequent database activity.

It doesn’t replace a page cache. It works lower in the stack, and the benefit depends on the site’s queries and hosting. A Redis plugin with no Redis service behind it creates nothing useful. Confirm what the host supports, how the connection is set up and whether WordPress is actually using it.

Object-cache problems can be subtle. A setting may continue to serve outdated values after an update, or a plugin may cache something that changes more often than expected. If a display looks stale, clear the relevant cache and inspect the configuration before adding another performance plugin.

Browser cache: let the visitor reuse files

Browser caching applies to assets such as images, stylesheets, scripts and fonts. The server sends caching instructions, and the browser can keep a local copy for a period of time. On a return visit, it may not need to download those unchanged files again.

This helps repeat visits and cuts requests. It doesn’t speed up HTML generation on a first visit, and it doesn’t shrink an oversized image. Use sensible cache headers and version your filenames when assets change, or a visitor may keep seeing an old stylesheet after you’ve fixed the design.

How to decide what to configure

Measure first. I don’t trust installing every plugin with “speed” in its name. Test a representative page: is the delay before the first response, during rendering, or from large assets? Check the host’s documentation and existing settings before changing the stack.

A sensible order is:

  1. Confirm that the hosting environment is healthy.
  2. Enable the host’s recommended page cache or one compatible caching plugin.
  3. Test pages with dynamic or logged-in content and exclude them where needed.
  4. Set browser caching for static assets, using a way to refresh changed files.
  5. Consider persistent object caching only when the host supports it and the site’s workload justifies it.
  6. Test after each change, then keep notes about what changed.

Don’t stack caching plugins. Two layers may both rewrite assets, minify scripts or purge on updates. When the site breaks, you have two sets of rules and nowhere obvious to start.

Clearing cache without panic

A blank page after a change is alarming, but it isn’t always caching. Clear one layer at a time: plugin cache, host cache, CDN cache, then browser cache. Retest in a private window. If it persists, roll back the last change and check the error logs instead of repeating the purge ritual.

Cache controls differ across hosts and plugins, so do not follow a button-by-button guide written for a different setup. Know where the cache lives and how to clear it before you need to.

FAQ

Does caching improve SEO?

It can help performance and user experience, which matter to visitors and can support search performance. It is not a direct ranking guarantee, and a cache does not fix weak content or technical errors.

Should I use all three types?

Not automatically. Page and browser caching are common starting points. Object caching is most useful when the workload and hosting setup benefit from it.

Can caching break a site?

Incorrect exclusions or overlapping tools can cause stale pages, broken scripts or problems with personalised content. Change one layer at a time and test key journeys.

Check which caching layer your host already provides before installing another plugin. That one small bit of homework can save an afternoon of clearing the wrong cache.