Caching is the practice of keeping a ready-made copy of something so it does not have to be built twice. A page assembled once can be stored and handed to the next thousand visitors, so a cached site feels quick, and why the edit you published five minutes ago can appear to have vanished.
In short
- A stored copy, served in place of building the page.
- It is the cheapest speed improvement most sites can make.
- Copies sit in several places, and each one expires on its own schedule.
- Anything personal, such as a cart or a login, has to be left out of it.
What a cache actually holds
Building a page takes work. The server runs code, asks the database for content, assembles the result and sends it. Caching does that once, keeps the finished page, and serves the copy to everybody who asks next.
The effect on a small business site is large because most visitors see identical pages. A service page does not change between one visitor and the next, so rebuilding it every time spends the server’s effort on producing the same answer repeatedly.
The saving grows with the site. A page drawing on a dozen database queries and a handful of plugins can take a second to assemble, where the stored copy arrives in a few milliseconds, and a visitor on a weak mobile connection feels that difference more sharply than anybody at a desk.
Speed is the visible benefit. Capacity is the quieter one: a cached site copes with a sudden rush, such as a post that travels further than expected, because serving a stored copy costs a fraction of building a fresh one.
The four places a copy can sit
Tracking down a stubborn old version means knowing who might be holding it.
- The browser. Your own device keeps images, fonts and scripts so a second visit loads faster. This is the copy a hard reload clears.
- The site. A plugin or the platform itself stores finished pages on the server, ready to hand out.
- The host. Many hosts cache in front of the site, which is why a plugin’s clear button sometimes changes nothing.
- The network. A content delivery network keeps copies in data centres around the world, close to the people asking.
A change has to work its way through every layer that holds it. When a site looks updated for you and old for a colleague, the difference is nearly always which of these layers each of you reached.
Search engines hold a copy of their own, which is a separate matter. What Google shows in its results reflects the page as it was last crawled, so a corrected price can be right on your site and wrong in the search result for a while longer.
Why the old version keeps appearing
Almost every report of a change that failed to publish is a caching story, and the order of checks is short.
Open the page in a private window first. A fresh window has no browser cache, so if the new version appears there, your own device was the culprit and everybody else is fine. If the old version persists, clear the site cache, then the host’s cache, in that order. If it survives all of that, check that you edited the page you think you did, on the site you think you did, which is the other common answer.
A staging site muddies this further, since staging and live often cache differently. A change that behaves on one and not the other is usually a cache rule that exists in only one place.
What should be left out
Caching assumes one answer suits everybody, so anywhere that assumption fails has to be excluded.
- Carts and checkouts, which are personal to the shopper.
- Logged-in pages, where a cached copy could show one person’s details to another.
- Forms carrying a security token, which expires and rejects the submission.
- Anything with live stock or prices, unless the cache clears when they change.
Getting this wrong produces faults that look mysterious and are not: a cart showing the wrong count, a contact form refusing valid entries, a sale price that outlives the sale. The pattern to recognise is a problem that disappears in a private window and returns in a normal one.
Editors are the other common casualty. Whoever updates the site should see live pages, which is what caching tools mean when they bypass the cache for signed-in users, and without that setting a page can look correct to the person who changed it and stale to every visitor.
Keeping a fast site and a current one
The two goals stop competing once the settings separate what changes from what does not.
Files that rarely change, such as images, fonts and scripts, can be cached for months on end, because any edit gives the file a new name and the browser fetches it as something it has never seen. HTML is the opposite: it carries your latest words and should be held for minutes, so a correction reaches readers quickly.
Publishing should clear what it affects. Good platforms purge automatically when a page is saved, and hosts provide a button for the rest. Add one habit to the end of every update: clear the cache, then check the live page in a private window before telling anybody the work is done.
Tell whoever updates the site how this behaves. Someone who changes a price, reloads twice and sees nothing will often change it a second time, and that second edit lands on top of the first once the stored copy expires.
Words you will hear
- Cache hit. A request answered from a stored copy.
- Cache miss. A request the server had to build.
- Purge. Clearing stored copies so the next request rebuilds the page.
- TTL. Time to live, how long a copy may be used before it expires.
- CDN. A network of servers holding copies near your visitors.
- Hard reload. A refresh that ignores the browser’s stored copies.
- Cache busting. Giving a changed file a new name so it is fetched again.
After your next update, open the page in a private window before you report it as live. Half the changes people believe failed were already there.
Questions we get
More about caching
Why can I not see the change I just made?
How do I reload while ignoring the cache?
Do we need a caching plugin?
Can caching cause problems?
What is a CDN?
How long should files be cached?
Our site is still slow with caching switched on. Why?
Do it yourself
Guides on the same topic
Free step by step guides for owners doing the work themselves. No sign up and no email required.
Related terms
Hosting
Hosting is the service that stores your website files and sends them to visitors, which is why a site that is not hosted simply does not exist online.
Core Web Vitals
Core Web Vitals are three measurements Google takes of how a page behaves for real visitors: how fast it appears, how quickly it responds, how much it moves.
Staging site
A staging site is a private copy of your website where changes are tested before going live. Two predictable accidents involve it, both quiet and expensive.