On this page
This guide is the comprehensive reference for speeding up WordPress through caching. If you want to understand the concept of caching itself, independent of WordPress, see caching and its types explained. And if you're looking for a detailed comparison of the most popular plugins to pick one, see the best caching plugin: a comparison. Here we focus on the practical perspective: why WordPress slows down, how caching fixes it, and how to apply it safely.
Why does WordPress slow down in the first place?
Before we talk about the cure, we need to understand the illness. WordPress is by nature a dynamic content management system, and that word is the key to everything. When a visitor requests a page from your site, there's no ready-made HTML file on the server waiting to be sent. Instead, the PHP interpreter wakes up, loads the WordPress core, runs the active theme and every enabled plugin, and sends a series of queries to the MySQL database to fetch the post, the comments, the menus, the widget settings and every plugin's data. Then it assembles all this in a PHP template, builds the final HTML output, and finally sends it to the browser.
This whole process repeats on every request, even if the page itself hasn't changed in a week. Imagine an article visited by a thousand people a day: the server builds the same page a thousand times, runs the same code and sends the same queries to produce exactly the same HTML. That's a huge waste of resources, and it's what makes TTFB (time to first byte) slow and consumes the server's CPU needlessly. The problem grows on shared hosting, where CPU resources are limited and shared, and it shows clearly the moment traffic rises: a server that copes with a hundred visitors chokes at a thousand, because every visitor forces a full PHP/MySQL cycle.
This is where caching comes in. The idea is obvious once you see it: if the same page will be shown thousands of times without changing, why build it every time? Let's build it once, save the output, and serve it directly to subsequent requests. That's exactly what a caching plugin does, and it's the single biggest performance improvement you can apply to a WordPress site without touching the code.
How does a caching plugin speed up WordPress?
The core mechanism is called page caching, and it's the heart of any caching plugin. On the first visit to a page, the request goes through the usual full cycle: PHP runs, MySQL is queried and the HTML is built. But before WordPress sends the output to the browser, the caching plugin intercepts it and saves a copy of the final HTML as a static file on disk (or in memory). On every subsequent visit to the same page, the plugin serves this ready-made file directly, without running PHP and without touching the database at all.
The performance difference is huge because you're literally bypassing the slowest part of the system. The official WordPress documentation describes the effect as an improvement of "hundreds of times" for mostly static pages, and that's an accurate qualitative description: you're replacing a build process that takes hundreds of milliseconds with a file read that takes a tiny fraction of that. At the technical level, this static copy is usually served through rewrite rules in the web server (such as mod_rewrite on Apache or the equivalent on Nginx), so the request is caught and directed to the cached file before it even reaches WordPress.
A crucial point to understand: page caching is served to logged-out visitors only, and they make up about 99% of the visitors to an ordinary blog or brochure site. A logged-in user (who sees the WordPress toolbar, their name at the top, or content personalized for them) can't be served from a shared static copy, because their page differs from everyone else's. So logged-in users bypass page caching automatically, as do store cart and account pages (we'll come back to this). This distinction isn't a flaw but a deliberate design: the vast majority of traffic (anonymous visitors) gets the maximum speedup, and the minority who need dynamic content are served correctly.
The five types of caching in WordPress
A common mistake is thinking "caching" is a single thing. In reality, speeding up WordPress relies on five different layers, each storing something different in a different place. Understanding them is essential because you'll see their names in any plugin's settings, and because some of them require server support that a plugin alone can't provide.
| Type | What does it store? | Where does it run? | Impact and requirements |
|---|---|---|---|
| Page cache | The page's complete HTML output | Server / disk | The biggest impact: bypasses PHP and MySQL entirely. Managed directly by the plugin, usually needs nothing from the server |
| Object cache | The results of WordPress's internal queries | Memory (Redis/Memcached) | Requires Redis or Memcached installed on the server; the built-in one isn't persistent by default. Important for logged-in users, stores and high traffic |
| Opcode cache (OPcache) | Compiled PHP bytecode | Server (PHP level) | Configured at the server level, not in the plugin; saves recompiling code on every request |
| Browser cache | Static assets (images, CSS, JS) | The visitor's browser | Enabled through HTTP headers; saves re-downloading files on later visits |
| Network cache (CDN) | Copies of assets (and sometimes pages) | Distributed servers near the visitor | Reduces geographic distance; integrates with the plugin. See what is a CDN |
Page caching is the star, as we've explained: the biggest gain and the simplest to enable. But let's pause on object caching, because it's the most confusing. This type doesn't store the whole page, but the results of individual queries inside WordPress, such as "fetch the site settings" or "fetch the list of categories." These queries repeat on every page, and storing them saves a lot of time, especially for pages that can't be cached as a whole (logged-in users' pages, the dashboard, stores).
Here's the subtle warning: WordPress has a built-in WP_Object_Cache mechanism, but it isn't persistent by default, meaning it's built at the start of each request and cleared at the end, so it offers no real benefit between requests. To make it persistent you need two things together: (1) Redis or Memcached actually installed on the server, and (2) a drop-in file that connects WordPress to that store. And here's the practical problem: these memory servers are often blocked on cheap shared hosting, and usually available only on managed hosting or a VPS. So if you see an "Object Cache" option in your plugin but your site is on cheap shared hosting, it most likely won't work until you install the required server.
OPcache, on the other hand, works at a completely different level: it stores a compiled (bytecode) copy of the PHP files themselves, so the server doesn't have to reinterpret the code on every request. This is configured in the server's PHP settings, not in the caching plugin, and it's usually already enabled at any good host. Browser caching and CDN caching handle static assets (images and files) rather than HTML pages, and complete the picture by reducing repeated downloads and geographic distance.
When do you really need object caching, and how do you make it persistent?
The confusion around object caching comes from the fact that its name appears in almost every plugin, so site owners think enabling the option is enough. The truth is more nuanced: the plugin's option does nothing real unless there's an actual memory store behind it. WordPress's built-in store (WP_Object_Cache) lives only inside the memory of the PHP process for a single request; it's built when the request starts and emptied when it ends. In other words, it saves repeated queries within the building of a single page (if the theme requests the site settings five times on the same page, they're fetched once and the other four are served from memory), but it brings no benefit from one request to the next, because every visitor starts with empty memory. That's what "not persistent" means.
To turn it into a persistent cache that survives between requests, you need three elements together: a running memory server (Redis is the most common today, and Memcached is an older, simpler alternative), the PHP extension that talks to that server (phpredis, for example), and a drop-in file named object-cache.php placed in the wp-content/ folder to intercept WordPress and direct it to the external store instead of temporary memory. Plugins such as Redis Object Cache create this file automatically when they find Redis available. The practical rule: if you see an "Enable Object Cache" button in your plugin but nothing changes after clicking it, the cause is usually the missing server, not a fault in the plugin; first check whether Redis or Memcached is available at your host.
And when do you need it in the first place? Not every site does. A blog or brochure site serving anonymous visitors benefits mainly from page caching, and object caching is a marginal improvement there. But the more pages that can't be cached as a whole, the greater its value: a WooCommerce store where every user has a cart, a forum with millions of queries on posts, a membership site, or any site with heavy logged-in traffic. In these cases object caching speeds up the requests page caching can't touch, because it relieves the database of repeated query results. That's why managed hosting for WordPress and stores offers Redis as a core feature rather than an add-on.
What caching plugins do beyond page caching
Modern plugins don't stop at caching pages; they bundle additional optimization features that work on the page's weight and rendering speed. It's useful to know them, because some are safe and some are risky:
- Preload: after content is edited, the old cached copy is invalidated, and instead of waiting for the first visitor to rebuild it (and suffer the slowness), the plugin rebuilds the cache proactively. This ensures every visitor, including the first one after the edit, gets a ready-made copy.
- Minify: removing whitespace and comments from CSS and JavaScript files to reduce their size.
- Combine: merging several CSS or JS files into one to reduce the number of requests, a feature that mattered in the HTTP/1.1 era and has become less useful (and riskier) with HTTP/2.
- Lazy load: postponing the loading of images and iframes until they approach the viewport, so the first screen loads faster.
- Deferring JavaScript: and here there's a subtle, important difference.
deferloads the script but postpones running it until HTML parsing has finished. Delay JS Execution is more powerful: it doesn't load the script at all until the user interacts (a click, scroll or tap). This is very useful for third-party scripts (analytics, chat, ads) and improves both LCP and INP, but it's the riskiest setting of all, because a delayed critical script can break an interactive element.
These features directly affect Core Web Vitals, the metrics Google uses to measure user experience. Deferring unnecessary JavaScript improves LCP and INP, lazy loading images avoids loading what the visitor doesn't see, and minification lightens the page weight. But as we'll see, the line between "optimization" and "breaking the site" is thin, and it depends entirely on enabling these features one at a time, testing in between.
The difference between defer and "Delay JS Execution" deserves a longer pause because it's often confused, and the confusion leads either to a lost gain or to a broken site. defer is a standard HTML attribute: the browser starts downloading the script immediately, in parallel with HTML parsing, but postpones running it until the page tree has been fully built. Its benefit is that it stops the script from blocking the first render without delaying its download, and it's relatively safe because the script will definitely run, and in the right order. "Delay JS Execution," however, isn't a standard attribute but a trick the plugin adds: it prevents the script from both downloading and running until the visitor's first interaction (a click, a scroll, a mouse movement or a tap on mobile). The effect on the metrics is different: defer mainly helps the page start rendering sooner, while Delay pushes the script's entire load out of the critical loading path, strongly lowering both LCP (because the browser is no longer busy running heavy JavaScript before painting the largest element) and INP (because the main thread stays free to respond). That's why Delay usually targets heavy third-party scripts the page doesn't need right away: analytics tools, chat widgets and ad scripts. But the price is that any script critical to the first render, such as the slider runner in the hero, will look broken until the visitor interacts if it falls under Delay, which is why such scripts are explicitly excluded from the list.
Browser caching and headers: the speedup that happens on the visitor's device
Everything above happens on the server, but a whole layer of speedup happens on the visitor's own device: browser caching. On the first visit, the browser downloads all the page's assets: the logo, CSS files, JavaScript files, fonts and images. These assets don't change between pages, and usually not even between visits, so re-downloading them every time is wasteful. Browser caching tells the browser to keep a local copy and reuse it, so later visits and inner pages become noticeably faster because half the network load has disappeared.
The mechanism works through HTTP headers the server sends with every file. The most important is the Cache-Control header, which sets how long the copy is valid through max-age (in seconds), so a value like max-age=31536000 means the browser may reuse the file for a whole year without asking the server. There are also validation mechanisms such as ETag and Last-Modified that let the browser ask "has the file changed?", and the server replies with a lightweight 304 Not Modified instead of resending the whole file. Most caching plugins set these headers for you when you enable a "Browser Cache" option or add rules to .htaccess, which is why we've classed it among the safe settings. The only known dilemma is versioning: if you update a CSS file while its old copy is stored for a year in visitors' browsers, they won't see the change. The solution plugins apply is a "fingerprint" added to the file name (such as style.css?ver=1.4) that changes with every edit, forcing the browser to fetch the new version. So give static assets a long lifetime without worry, and let the versioning mechanism take care of updates.
Server caching vs. plugin caching: who does what?
A fundamental question that's often neglected: do you need a caching plugin at all, or does your hosting take care of it? The answer determines whether your setup succeeds or fails.
Page caching can work at two levels: at the server level (such as Nginx FastCGI caching or built-in LiteSpeed caching) or at the plugin level (PHP inside WordPress). Server caching is inherently faster, because it intercepts the request and serves the static copy without involving PHP at all, while a PHP plugin, however effective, still runs a minimum of code to decide whether to serve the cached copy. The difference isn't always noticeable for a small site, but it shows under heavy load.
Here's the decisive rule: managed hosting (such as Kinsta, WP Engine or Flywheel) runs caching built in at the server level. Installing a caching plugin on top of it isn't an improvement but a source of problems: two caching layers fight over invalidation, so the server may invalidate its copy while the plugin keeps an old one, or vice versa, and hard-to-diagnose faults appear. That's why these hosts usually explicitly forbid page caching plugins, or require you to disable the page caching feature in them.
The practical rule is simple: if your host manages page caching, disable page caching in the plugin and use the plugin only for its other features (minification, lazy loading, CDN integration) if you need them. Also be aware that some hosts run hidden network-level caching that you can't control from WordPress; in that case you may not see your updates appear immediately, and you'll need to contact support to clear that cache manually. Knowing what your hosting does before installing any plugin saves you hours of confusion.
| Scenario | What manages the cache? | What should you do? |
|---|---|---|
| Ordinary shared hosting | Usually no built-in page caching | Install a caching plugin and enable page caching |
| LiteSpeed hosting | Built-in server caching via LSCache | Use the LiteSpeed Cache plugin, which integrates with the server |
| Managed hosting (Kinsta/WP Engine) | Built-in, managed server caching | Don't install a page caching plugin; use a plugin only for other features when needed |
| A VPS you manage yourself | You decide (Nginx FastCGI or a plugin) | Server caching for maximum performance, or a plugin for ease of management |
| A host with hidden network caching | Caching you can't control from WordPress | Mind invalidation; contact support to clear it when needed |
How do you choose the right caching plugin for your server?
Choosing a plugin isn't a matter of "the most popular wins" but of matching the plugin's capabilities to your server environment. The most important and most overlooked criterion is the type of web server: if your hosting runs on LiteSpeed, the LiteSpeed Cache plugin is the natural choice because it integrates directly with the built-in server cache and gives you server-level performance that no PHP cache can match. On Apache or Nginx, general-purpose PHP caching plugins are your path. (For more on the difference, see LiteSpeed vs. Nginx.)
The second criterion is the availability of Redis or Memcached. If your site is a store, a forum or any site with many logged-in users and dynamic content, persistent object caching isn't a luxury but a necessity, and it requires a server that provides Redis/Memcached. This is often blocked on cheap shared hosting, and available on managed hosting and a VPS. There's no point choosing a plugin with a strong object cache feature if your server doesn't provide the store it depends on.
| Criterion | What should you ask yourself? | Why does it matter? |
|---|---|---|
| Server type | LiteSpeed or Apache/Nginx? | Determines the integrated plugin; LiteSpeed needs its own plugin |
| Redis/Memcached support | Does my server provide it? | Persistent object caching requires it; usually blocked on shared hosting |
| Ease of setup | Are there safe, ready-made presets? | Reduces the risk of non-specialists breaking the site |
| Breadth of features | Minify/defer/CDN/object? | A comprehensive plugin spares you from installing several |
| CDN integration | Does it connect a CDN easily? | Simplifies distributing assets geographically |
| Quality of support | Is the support responsive? | Essential when a conflict or fault occurs |
The remaining criteria (ease of setup, breadth of features, quality of support) vary in importance depending on your experience. A beginner values safe, ready-made presets that work with one click, while a professional wants fine-grained control over exclusion lists and CDN integration. A broad feature set (minify + defer + CDN + object) is useful because it spares you from installing several conflicting plugins. But remember: there's no absolute "best plugin"; there's the best plugin for your server and your site. A detailed comparison of the common options is the subject of the best caching plugin: a comparison.
Safe setup vs. risky setup
This is the most important practical section of the guide, and the crux of avoiding a broken site. Not all caching settings carry the same risk. Some are safe and can be enabled with confidence, while others are risky and require caution and testing. The golden rule everyone forgets: enable one feature, then test, then move on to the next. Don't enable ten features at once and then discover your site is broken without knowing why.
Usually safe settings include: page caching, browser caching, GZIP or Brotli compression, and lazy loading of images. These rarely cause problems and can be enabled first to get most of the gain with the least risk. These alone are enough for a noticeable speedup on most sites.
Risky settings, the riskiest being minifying/combining CSS and delaying JavaScript execution, can break your site visually or functionally. Combining CSS can cause FOUC (a flash of unstyled content: the page appears briefly without its design before the styles load), or mix up the order of rules so the layout breaks. Deferring JavaScript can disable a slider, a form or an interactive button, because the script that runs it hasn't loaded yet. The remedy for these risks lives inside the plugin itself: exclusion lists, which leave specific files out of minification or deferral, preserving the gain without breaking sensitive elements.
| Setting | Safety level | What might happen? | How do you handle it? |
|---|---|---|---|
| Page caching | Usually safe | Rarely problems | Enable it first |
| Browser caching | Safe | No significant problems | Enable it |
| GZIP / Brotli | Safe | No significant problems | Enable it |
| Lazy loading images | Usually safe | May occasionally delay an above-the-fold image | Exclude the LCP image if needed |
| Minify/combine CSS | Risky | FOUC, broken layout | Enable and test; use exclusions |
| Defer/delay JavaScript | Risky | Breaks a slider/form/button | Enable and test; exclude critical scripts |
The right testing protocol after every change: open the site's front end in an incognito window, because as a logged-in user you bypass the cache and won't see what a real visitor sees. Browse the main pages, and specifically try the interactive elements: the slider, contact forms, the shopping cart, dropdown menus. Measure performance before and after the change (with a tool such as PageSpeed Insights) to make sure you're actually improving things, not just assuming so. Most importantly: clear the cache between every test, or you'll be testing an old copy and drawing the wrong conclusions. This slow, methodical discipline is what separates a fast, healthy site from a fast, broken one.
Because a theoretical description stays abstract, here's the practical method for testing a single risky setting (minifying/combining CSS, for example) step by step; the same applies to deferring JavaScript and any other setting whose effect you're unsure of:
- Record a baseline first. Before touching any setting, measure your most important pages (the home page, an article page, the shop page if there is one) with a consistent measurement tool, and write down the numbers. Without a baseline you won't know whether you've improved things or made them worse.
- Enable just one setting, then clear the cache. Not two, not "everything in this section." One setting gives you a single variable to attribute any later change to.
- Open an incognito window and check the display visually. Browse the pages and watch specifically: did a moment without styling (FOUC) appear? Did a layout shift? Did an icon or font disappear?
- Try every critical interactive element. Click the slider, submit a test contact form, add a product to the cart, open the dropdown menu. Visual faults show up immediately, but JavaScript faults only appear when you interact.
- Check the browser console. Many deferral faults show up as
undefined is not a functionerrors in the console before you notice them with your eyes, and they point you directly to the script that needs to be excluded. - Measure again and compare with the baseline. If the numbers improved and the display is intact, keep the setting and move on to the next one. If a fault appears, isolate the responsible script or file and add it to the exclusion list, then test again, or roll back the setting entirely if it isn't worth the trouble.
This cycle may seem slow, but it's actually the fastest route: the alternative is enabling everything at once, discovering a mysterious fault a week later, and then spending hours guessing which of ten settings is the cause.
WooCommerce exclusions: why caching breaks stores in particular
Stores are a special case that deserves its own section, because the caching that speeds up a blog can ruin a store if applied carelessly. The core of the problem is that most store pages are personalized for each visitor: the cart holds their products, the account shows their orders, and checkout builds on their session. If a caching plugin stored a static copy of the cart page and served it to everyone, every customer would see the cart of the first visitor the copy was built for: an immediate commercial disaster.
So the firm rule is: exclude the /cart/, /checkout/ and /my-account/ paths from page caching entirely; these must never be cached. But the most important and most overlooked exclusion isn't the paths but the cookies. WooCommerce uses a session cookie named wc_session (along with other cookies prefixed woocommerce_) to remember each visitor's cart contents. If the caching layer ignores these cookies and serves the static copy despite their presence, the visitor will see a page that doesn't reflect their real cart: it appears empty or holds items that aren't theirs. The correct setup is to have the cache bypass the cached copy entirely for any request carrying a WooCommerce session cookie, so these visitors are served directly by live WordPress as if they were logged in.
The reassuring part is that mature plugins (as well as server caching on LiteSpeed and managed hosting for stores) detect WooCommerce and apply these exclusions automatically. But "automatically" doesn't mean "always correctly": check for yourself by adding a product to the cart from an incognito window, then moving between pages and making sure the cart stays correct and isn't emptied at random. And here the role of object caching appears again: since a store's dynamic pages can't be cached as a whole, persistent object caching (Redis) becomes the most important speedup for them, because it relieves the database of repeated queries on every load. In other words, a store needs the reverse pattern from a blog: less page caching (with precise exclusions) and more object caching.
Common mistakes when enabling caching
The same mistakes recur in many cases. Knowing them in advance spares you the most painful ones.
- Double caching: installing two caching plugins together, or a caching plugin on top of a managed host's caching. The two layers fight over invalidation, and random faults that are hard to diagnose appear. Use only one caching plugin, and don't install any of them on top of hosting that already manages caching.
- Not excluding dynamic pages on stores: this mistake ruins WooCommerce stores in particular. The
/cart/,/checkout/and/my-account/pages must be excluded from page caching, and session cookies such aswc_sessionmust not be cached either. The official WooCommerce documentation is explicit: caching these pages or cookies shows customers a wrong or empty cart; they see someone else's products or don't see their cart at all. Most good plugins exclude these pages automatically when they detect WooCommerce, but always check. (See optimizing WooCommerce performance for more.) - Not clearing the cache after editing: you edit a post or change a design, then you're surprised that the change doesn't show. The reason is that visitors (and you, in an incognito window) are still being served the old cached copy. Enable automatic invalidation on publish, or clear the cache manually after any important change.
- Enabling combine/minify/defer all at once: the root mistake that leads to everything above. You enable all the risky features together, the site breaks, and you don't know which one is responsible. The solution is discipline: one, then a test, then the next.
| Mistake | Visible symptom | Fix |
|---|---|---|
| Double caching | Random invalidation faults | One plugin; no caching on top of managed hosting |
| Not excluding store pages | A wrong/empty cart for the customer | Exclude /cart/, /checkout/, /my-account/ and wc_session cookies |
| Not clearing the cache after editing | Changes don't show | Enable automatic invalidation or clear manually |
| Enabling every feature together | Breakage with an unknown cause | One, then a test, then the next |
What's the actual impact? Indicative figures
Figures help you form realistic expectations, but read them as indicative examples, not guarantees, because every site and server is different. In a study published by DebugHawk in 2025 on a large sample (about 5.7 million page views), the effect of page caching on TTFB was clear: about 106 milliseconds with page caching versus 723 milliseconds without it, roughly 7 times faster. This is entirely consistent with the logic we've explained: you serve a ready-made file instead of building the page from scratch.
The same study measured the effect of persistent object caching on PHP processing time for pages that can't be cached as a whole: a drop of about 67% (508 milliseconds versus 1,542 milliseconds). This highlights why object caching matters for stores and dynamic sites that page caching alone can't help. And qualitatively, the official WordPress documentation describes the overall improvement as "hundreds of times" for mostly static pages.
The takeaway from the figures: page caching gives you the biggest and easiest leap, and object caching completes the picture where page caching falls short. But the size of your gain depends on your starting point, your server type and your site's structure. Always measure on your own site before and after the change; that measurement is the only truth you can rely on.
Where does caching fit in the WordPress speed optimization system?
Caching is the most powerful single improvement, but it isn't the only solution. A fast site is the result of several layers working together. Caching fixes the slowness caused by rebuilding pages, but it doesn't fix a bloated database, heavy images or a fundamentally weak server.
Before caching, or alongside it, take care of other foundations. The database accumulates revisions, temporary data (transients) and spam comments until queries slow down; cleaning it complements caching (see optimizing the WordPress database). Images are usually the heaviest element on a page, and compressing them and converting them to modern formats lightens the weight a lot. And a CDN reduces the geographic distance for assets between your server and a distant visitor. The complete view of all these elements together is the subject of the comprehensive guide speeding up a WordPress site.
From this perspective, caching is the foundation you build on, not the ceiling. Start with it because it gives the highest return for the least effort, then add the other layers gradually. And check what your hosting environment already provides (server caching, resources and PHP settings) before you build on top of it.
Frequently asked questions
Do I need a caching plugin if my host manages caching? Usually not for page caching. If your hosting is managed (Kinsta, WP Engine, Flywheel) or runs built-in server caching, installing a page caching plugin on top of it creates a conflict that breaks invalidation. In that case, use a plugin only for other features (minification, lazy loading, CDN integration) if you need them, with its page caching disabled.
What's the difference between page caching and object caching? Page caching stores a page's complete HTML output and serves it without running PHP or MySQL; it has the biggest effect, and it benefits logged-out visitors. Object caching stores the results of individual internal queries in memory (Redis/Memcached), and it benefits pages that can't be cached as a whole: logged-in users' pages, stores and high traffic.
Why doesn't the Object Cache option in my plugin work? Because persistent object caching requires Redis or Memcached to actually be installed on the server, with WordPress connected to it through a drop-in file. WordPress's built-in store isn't persistent by default (it's cleared at the end of every request). Redis/Memcached is often blocked on cheap shared hosting, and available on managed hosting and a VPS.
Why don't my changes show up on the site after editing? Usually because visitors are still being served the old cached copy. Clear the cache manually after editing, and enable automatic invalidation on publish. Also check whether your host has hidden server or network caching that may need to be cleared separately.
Does caching speed things up for logged-in users? Page caching is usually served only to logged-out visitors (about 99% of an ordinary site's traffic), because a logged-in user's page is personalized and can't be shared. Logged-in users benefit from object caching and OPcache, not page caching, which is why object caching matters for stores and forums.
Why did my site's design break after enabling caching? Usually because of a risky setting: minifying/combining CSS can cause a flash of unstyled content (FOUC) or break the layout, and deferring JavaScript can disable a slider, a form or a button. Disable these features, then enable them one at a time with testing, and use exclusion lists to leave out critical files.
How do I set up caching safely on a WooCommerce store?
Exclude the /cart/, /checkout/ and /my-account/ pages from page caching, and don't cache session cookies such as wc_session. Caching them shows customers a wrong or empty cart. Most good plugins do this automatically when they detect WooCommerce, but check for yourself, and enable object caching to speed up dynamic pages.
What's the difference between defer and Delay JS Execution?
defer loads the script but postpones running it until HTML parsing has finished. Delay JS Execution doesn't load the script at all until the user interacts (a click/scroll/tap). The second is more powerful for improving LCP and INP, especially for third-party scripts, but it's riskier because it can delay a critical script; use exclusions.
Is caching alone enough to speed up WordPress? No, but it's the single biggest and easiest improvement. Caching fixes the slowness of rebuilding pages, but it doesn't fix a bloated database, heavy images or a weak server. Combine it with database optimization, image compression, a CDN and good hosting for the best result.
How do I know caching is actually working? Measure TTFB and load time before and after enabling it with a tool such as PageSpeed Insights, from an incognito window (because as a logged-in user you bypass the cache). Many plugins add a header or a comment in the page source indicating a "cache hit." Clear the cache between tests so you don't measure an old copy.
Sources
Frequently asked questions
Do I need a caching plugin if my host manages caching?
Usually not for page caching. If your hosting is managed (Kinsta, WP Engine, Flywheel) or runs built-in server caching, installing a page caching plugin on top of it creates a conflict that breaks invalidation. In that case, use a plugin only for other features (minification, lazy loading, CDN integration) if you need them, with its page caching disabled.
What's the difference between page caching and object caching?
Page caching stores a page's complete HTML output and serves it without running PHP or MySQL; it has the biggest effect, and it benefits logged-out visitors. Object caching stores the results of individual internal queries in memory (Redis/Memcached), and it benefits pages that can't be cached as a whole: logged-in users' pages, stores and high traffic.
Why doesn't the Object Cache option in my plugin work?
Because persistent object caching requires Redis or Memcached to actually be installed on the server, with WordPress connected to it through a drop-in file. WordPress's built-in store isn't persistent by default (it's cleared at the end of every request). Redis/Memcached is often blocked on cheap shared hosting, and available on managed hosting and a VPS.
Why don't my changes show up on the site after editing?
Usually because visitors are still being served the old cached copy. Clear the cache manually after editing, and enable automatic invalidation on publish. Also check whether your host has hidden server or network caching that may need to be cleared separately.
Does caching speed things up for logged-in users?
Page caching is usually served only to logged-out visitors (about 99% of an ordinary site's traffic), because a logged-in user's page is personalized and can't be shared. Logged-in users benefit from object caching and OPcache, not page caching, which is why object caching matters for stores and forums.
Why did my site's design break after enabling caching?
Usually because of a risky setting: minifying/combining CSS can cause a flash of unstyled content (FOUC) or break the layout, and deferring JavaScript can disable a slider, a form or a button. Disable these features, then enable them one at a time with testing, and use exclusion lists to leave out critical files.
How do I set up caching safely on a WooCommerce store?
Exclude the /cart/, /checkout/ and /my-account/ pages from page caching, and don't cache session cookies such as wc_session. Caching them shows customers a wrong or empty cart. Most good plugins do this automatically when they detect WooCommerce, but check for yourself, and enable object caching to speed up dynamic pages.
What's the difference between defer and Delay JS Execution?
defer loads the script but postpones running it until HTML parsing has finished. Delay JS Execution doesn't load the script at all until the user interacts (a click/scroll/tap). The second is more powerful for improving LCP and INP, especially for third-party scripts, but it's riskier because it can delay a critical script; use exclusions.
Is caching alone enough to speed up WordPress?
No, but it's the single biggest and easiest improvement. Caching fixes the slowness of rebuilding pages, but it doesn't fix a bloated database, heavy images or a weak server. Combine it with database optimization, image compression, a CDN and good hosting for the best result.
How do I know caching is actually working?
Measure TTFB and load time before and after enabling it with a tool such as PageSpeed Insights, from an incognito window (because as a logged-in user you bypass the cache). Many plugins add a header or a comment in the page source indicating a "cache hit." Clear the cache between tests so you don't measure an old copy.