Short answer: Caching saves work that's already been done so it doesn't have to be repeated. Browser caching keeps files on the visitor's device, page caching stores finished pages on the server, object caching keeps database results in memory, OPcache keeps compiled PHP ready, and a CDN caches files near visitors. Page caching is usually the single biggest speed win for a website.
Building a WordPress page can involve dozens of database queries and thousands of lines of PHP. Caching means doing that work once and reusing the result, so the next visitor gets the page in a fraction of the time.
The layers
| Cache | Where it lives | What it saves |
|---|---|---|
| Browser cache | Visitor's device | Re-downloading images, CSS and JS |
| Page cache | Your server | Rebuilding whole pages |
| Object cache (Redis) | Server memory | Repeating database queries |
| OPcache | PHP on the server | Recompiling PHP code |
| CDN cache | Edge locations | Long-distance trips to your server |
A fast site uses several layers together. A visitor's request might be answered by the CDN, or the page cache, and only reach PHP and the database when nothing cached fits.
Page caching: the biggest win
Most visitors see the same page. Generating it once and serving the saved copy turns a heavy request into a light one. In WordPress, a caching plugin handles this; on LiteSpeed servers, LiteSpeed Cache works at the server level.
You can see whether a page cache is working with our website speed test: it shows the server response time (TTFB) and any cache header, such as a cache "hit". A cached page usually answers in well under 300 ms. See TTFB explained.
What not to cache
- Shopping carts and checkout pages.
- Account and dashboard pages.
- Pages that show personal information.
- Pages for logged-in users, unless your cache plugin handles them separately.
Good cache plugins exclude these automatically, but always test after setup. See WooCommerce hosting needs.
Browser caching
Your server tells browsers how long they can keep images, styles and scripts. With long cache times, returning visitors load pages almost instantly. To make sure visitors still get your updates, good setups give changed files new names (often a version number or fingerprint in the file name).
Object caching
Busy sites with many logged-in users or complex queries benefit from Redis, which keeps database results in memory. See Redis object cache.
OPcache
PHP code has to be compiled before it runs. OPcache keeps the compiled version in memory, so it isn't recompiled on every request. It is usually on by default on good hosting. See PHP OPcache.
CDN caching
A CDN keeps copies of your files, and sometimes whole pages, in locations around the world. See what a CDN is.
Clearing the cache
After changing your theme, menus or important content, clear the cache so visitors see the update. Clear it in this order: your cache plugin, then the CDN (if you use one), then your own browser.
Frequently asked questions
Why don't I see my changes?
You're probably seeing a cached copy. Clear the site cache and your browser cache.
Can caching break my site?
Rarely, usually by caching a dynamic page. Exclude cart, checkout and account pages.
Is caching enough to make a site fast?
It's the biggest single step, combined with optimised images and a lean theme. See speed up WordPress and why is my website slow?
Should I use two caching plugins?
No. Two page caches fight each other and can cause errors. Use one, ideally the one designed for your server.



