Magento

Full-Page Cache and a Slow Magento Payment Page

 ·   ·  ~11 min read  ·  Last reviewed

Magento performance. Full-page cache and a slow payment page. Why a cache bug off checkout makes checkout slow.
Checkout is never cached, but a broken cache on the rest of the store still slows it down by using up PHP capacity.
TL;DR - Key Takeaways
  • Full-page cache never serves checkout. Cart and checkout are uncacheable by design, so every checkout request runs PHP.
  • One uncacheable block kills the cache for the whole page. In default.xml, that means every page, even if the block is never rendered.
  • Your cache still decides checkout speed. A broken cache on catalogue pages saturates PHP workers, and checkout, which always needs a worker, degrades first.
  • Separate server time from client time before changing anything. They need completely different fixes.
  • Most of the fix list is configuration. Front-end architecture comes last, not first.

Full-page cache never serves your checkout. Adobe's own documentation lists cart and checkout among the pages that are uncacheable by design, because they carry data that belongs to one shopper. So every checkout request runs the full PHP application stack, every time, for everyone.

That single fact invalidates most Magento performance advice when applied to checkout. Enabling Varnish will not speed up your payment page. Raising your cache hit ratio will not speed up your payment page directly. The advice isn't wrong; it's just aimed somewhere else.

And yet your cache configuration still largely determines how fast your checkout is, through a mechanism almost nobody connects. That's what this article is about, along with what actually makes the checkout page itself slow, and the order to fix things in.


What FPC does, and where it stops

Full-page cache (Varnish, or Magento's built-in file or Redis-backed cache) stores complete rendered HTML and serves it without executing PHP. On a category or product page that turns hundreds of milliseconds of application work into a few milliseconds of proxy work.

Magento decides cacheability from the layout. Every block is cacheable by default, and a block marked cacheable="false" in layout XML opts out. The crucial part, straight from Adobe's documentation: "If any block in a layout is designated as uncacheable, the entire page is uncacheable." There is no partial caching of a page.

Checkout, cart, customer account and product comparison all contain blocks marked this way. So they always execute PHP. That's correct behaviour, not a bug, and adding cacheable="false" to your own checkout blocks is redundant: the page is already excluded.


The all-or-nothing rule is the most expensive bug in Magento

Here's where it stops being a design note and becomes a performance problem.

Because one uncacheable block disables the cache for a whole page, a block injected into a global layout handle disables it for every page on the site. Extensions do this. Sometimes to fix a display bug, sometimes to handle personalisation lazily, occasionally by accident: a cacheable="false" added to default.xml rather than to the specific layout that needed it.

The symptom is a store where cache is "enabled", Varnish is running, the admin shows everything green, and the cache hit ratio is near zero.

There's a subtler version that's genuinely difficult to find, documented in Magento's own issue tracker as issue #9041. Magento determines cacheability by merging all layout updates for a page and searching the declarations for a cacheable="false" attribute. It does this against the declared layout, not the executed block structure. So a block whose parent doesn't exist, one that is removed from the page and never rendered at all, still marks the page uncacheable. You can be paying the full cost of an uncacheable site for a block that doesn't appear anywhere in the output.

Finding it is one command:

grep -r 'cacheable="false"' app/code/ vendor/ app/design/

Check the hits against default.xml first, then catalog_product_view.xml, catalog_category_view.xml and cms_page_view.xml. Anything in default.xml that isn't yours is worth raising with the extension vendor. Blocks under checkout_index_index.xml and customer_account_* are expected and fine.

To confirm the live behaviour, put the store in developer mode and read the X-Magento-Cache-Debug response header. A page type that returns MISS on every request, including repeat anonymous requests, has an uncacheable block somewhere in its layout.


How a cache bug off checkout makes checkout slow

This is the part that doesn't appear in the standard advice, and it explains a pattern that otherwise looks like coincidence: a team fixes a caching problem on category pages and watches checkout get faster.

The mechanism is capacity. Your server runs a finite pool of PHP-FPM workers. When FPC is healthy, the overwhelming majority of traffic (catalogue browsing, which is most of your sessions) is served by Varnish and never touches a worker. The pool exists mainly to serve the small share of requests that genuinely need PHP: cart, checkout, account, and the REST calls behind them.

Break the cache and that inverts. Every category page view now occupies a worker for hundreds of milliseconds. The pool saturates. New requests queue.

And checkout is the traffic that cannot be rescued by the cache. It always needs a worker. So when the pool is contended, checkout degrades first and worst, not because anything about checkout changed, but because it is now competing with traffic that used to be free.

Two consequences worth internalising:

Your checkout speed depends on your cache hit ratio even though checkout is never cached. The hit ratio determines how much spare capacity exists for the requests that must run PHP.

Checkout slowness is a load-dependent symptom. It will look fine in a staging environment with one user and no traffic, and bad at 2pm on a Tuesday. If your team can't reproduce a reported checkout slowdown, check whether they tested it under load, and whether the reports correlate with traffic peaks rather than with deploys.


What makes the checkout page itself slow

Separately from capacity, the checkout page has its own costs. They arrive as a sequence of blocking requests, each of which does substantial work.

Customer data sections. Because cached pages can't render personalised content server-side, Magento fetches it separately and stores it in the browser's localStorage. The default configuration loads every section. On a store with configurable products and tier pricing, the cart section alone can run to six figures of bytes, and practitioners report multi-megabyte payloads in the wild. Parsing that blocks the main thread, which shows up directly in Interaction to Next Paint, and mobile Safari evicts localStorage under memory pressure, forcing a full refetch at the worst moment.

The REST waterfall. Entering checkout and interacting with it fires estimate-shipping-methods, then shipping-information, then payment-information, plus totals and section refreshes. Each one recollects the quote.

Quote recollection. Totals collectors run in sequence (subtotal, shipping, tax, discount, grand total, plus any registered by extensions), and the whole sequence runs on every change. Change the country, recollect. Apply a coupon, recollect. Pick a different shipping method, recollect.

Shipping carriers. Each active carrier means a live API call when the address changes. Published latency estimates conflict sharply: one source puts three carriers at 6 to 9 seconds, another puts four at 2 to 3 seconds. That tells you these numbers depend entirely on carrier, region and network path. Measure your own rather than trusting either figure.

Payment method availability. Magento evaluates which payment methods apply to the current quote on every checkout page load, calling isAvailable() on each enabled method. Implementations that re-read or recalculate quote totals inside that method, rather than using the already-calculated values on the quote object, multiply the cost by the number of enabled methods.

Cart price rules. Every active cart and catalog price rule is evaluated during recollection. Expired rules that were never disabled are pure cost.

The JavaScript payload. The checkout loads a large bundle before it can render. This is the one place where the Knockout and RequireJS architecture bites directly, covered in detail in our piece on why Magento checkout customization is so painful.


Private content: the workaround with its own bill

Customer data sections are Magento's answer to the caching problem: serve a cached page, fill the personal bits in afterwards with JavaScript. It's the right pattern, and it's the right alternative to cacheable="false" when you need dynamic content on a cacheable page.

It has two failure modes worth auditing.

Over-invalidation. sections.xml declares which actions invalidate which sections. A section wired to invalidate on too many actions gets refetched constantly, so what should be an occasional request becomes a request after nearly every interaction. Read your sections.xml, including what extensions have added to it, and check that each invalidation is genuinely necessary.

Loading sections nobody uses. The default config fetches everything regardless of what the current page needs. Trimming this is small, low-risk work rather than a rebuild, and it is one of the cheaper checkout wins available.


Telling server-side from client-side

Before changing anything, establish which half of the problem you have. The two require completely different fixes and look identical to a shopper.

Open the network panel on a real device, place a real order, and look at the checkout REST calls. Time to first byte on estimate-shipping-methods and payment-information is server-side: quote recollection, carrier calls, database work. Time between the response arriving and the UI updating is client-side: JavaScript execution, section parsing, rendering.

If TTFB is the problem, look at carriers, rules, extensions and worker capacity. If the gap after the response is the problem, look at the JS bundle, localStorage size and third-party scripts. Teams routinely spend weeks optimising the wrong half because the only metric they had was a stopwatch.

Two more diagnostics worth having:

  • X-Magento-Cache-Debug in developer mode, to establish your real cacheability per page type.
  • PHP-FPM pool status during a traffic peak. If the queue is non-empty, your checkout problem is a capacity problem and no amount of checkout optimisation will fix it.

And make sure you can see where shoppers actually drop out, not just how slow each step is. Our guide to GA4 checkout funnel tracking covers setting that up properly.


The fix list, in order

Deliberately ordered by return per hour, not by sophistication. Items 2 to 5 are admin configuration and need no developer; item 1 is a grep and usually a short conversation with an extension vendor.

  1. Find and remove stray cacheable="false" blocks from global layouts. Potentially the largest single win on the whole site, and finding them is a grep.
  2. Disable shipping carriers you don't use. Each active one is a live API call on address change.
  3. Disable payment methods below a couple of percent of transactions. Each loads its own JS, sometimes an iframe, and is evaluated on every checkout load.
  4. Disable expired cart and catalog price rules. Evaluated on every recollection, forever.
  5. Restrict the country list to where you actually ship.
  6. Audit sections.xml: trim sections and over-eager invalidations.
  7. Check PHP-FPM worker count against real peak traffic. Pool saturation looks exactly like slow code.
  8. Audit isAvailable() in custom payment methods for queries that could read the quote instead.
  9. Review third-party scripts loading on checkout. Analytics, chat and heatmap tags belong deferred or gone.
  10. Then, and only then, consider front-end architecture: Hyvä Checkout or similar. It's a real answer when the front end is genuinely the constraint, and it's a large project to reach for before the nine cheaper items above.

For the wider order of work on a Magento store, beyond speed, see how to reduce checkout abandonment on Magento.


What doesn't help

"Turn on Varnish to fix checkout." Varnish never serves checkout. It helps checkout only indirectly, by freeing capacity. Worth doing, wrong reason.

"Install a one-step checkout extension." It replaces the component every other checkout extension plugs into. The documented failure modes are extension conflicts, broken payment and shipping integrations, and frequently a slower checkout than the one it replaced. Magento's default is already a two-step flow on a single URL; the gap is smaller than the marketing suggests. Our guide to whether one-step checkout extensions are worth it covers what they do buy you, and when that is worth paying for.

"Enable JS bundling." Magento's native bundling often makes checkout worse, because it ships one large bundle containing code the checkout never uses. Measure before and after rather than assuming.

"Add more caching." There is no cache layer that will cache a personalised checkout. Redis for sessions and backend cache is correct and worth configuring properly, but it does not make checkout cacheable.

"Replatform." Every item on the fix list above is available on the platform you already have. Our guide to deciding whether to migrate or modernize covers how to tell when the platform really is the constraint.


Symptom to cause

Common Magento checkout speed symptoms, their likely causes, and what to check first
Symptom Likely cause First check
Whole site slow, cache "enabled" cacheable="false" in a global layout The grep above; X-Magento-Cache-Debug
Checkout slow only at peak hours PHP-FPM pool saturation Worker queue during a peak; cache hit ratio
Long pause after entering address Carrier API calls, quote recollection Count active carriers; time estimate-shipping-methods
Slow to open checkout at all JS bundle, localStorage size Network panel; measure mage-cache-storage
Response arrives fast, UI updates late Client side: parsing and rendering Main-thread activity after the response
Place Order hangs Synchronous order email or slow payment API Enable async emails; time the gateway call
Totals recalculate slowly on every change Active price rules, extension collectors Disable expired rules; list registered collectors
Fine in staging, slow in production Load-dependent, not code-dependent Reproduce under realistic concurrency

When the list above doesn't find it

Most Magento checkout slowness is on that list, and most of it is configuration. What's left is the interesting part: an extension registering a totals collector nobody knew about, a payment method re-querying the quote on every availability check, a sections.xml entry invalidating on an event that fires constantly, a cache that looks healthy and isn't.

Working through it yourself? The checkout audit checklist is published in full, and our Magento checkout optimization page covers how we work on the platform more broadly.

Find out which layer is failing

Our manual checkout audit profiles the real requests on your real store, server time separated from client time, under realistic conditions, on real devices, and tells you which layer is failing before anyone proposes a rebuild. Often the answer is nine configuration changes and no code.

Book a manual checkout audit →

Sources

Where sources disagree (shipping carrier latency in particular), the article says so rather than picking one. Magento behaviour changes between releases; this page was last reviewed October 6, 2026 and is re-verified every six months.


Written by Checkout Experts

Checkout Experts is a checkout-only optimisation agency with 20 years of experience and 500+ projects across Shopify, WooCommerce, Magento, BigCommerce, and custom builds. Part of ZestIQ, est. 2006.

Common Questions

Magento Checkout Speed FAQ

Quick answers on full-page cache, uncacheable blocks and why the payment page is slow. Want an engineer to profile your real checkout? Book a manual checkout audit.

No. Cart and checkout are uncacheable by design because they contain shopper-specific data, so every checkout request executes PHP. Full-page cache helps checkout only indirectly, by keeping catalogue traffic off your PHP workers so there is capacity for the requests that need them.
Almost always a block marked cacheable="false" in a global layout handle such as default.xml, usually added by an extension. One uncacheable block disables the cache for the entire page. It can even do so when the block is never rendered, because Magento reads the layout declarations rather than the executed block structure.
Run grep -r 'cacheable="false"' app/code/ vendor/ app/design/, then check the results against default.xml and your main page-type layouts. Confirm the live behaviour with the X-Magento-Cache-Debug response header in developer mode: a page type that returns MISS on every repeat anonymous request has an uncacheable block somewhere in its layout.
Usually a combination of quote recollection on every change, live shipping carrier calls, payment method availability checks running on each enabled method, and a large JavaScript payload. Separate server time (time to first byte on the REST calls) from client time (what happens after the response arrives) before optimising either.
Almost never. Use private content sections via sections.xml and customer-data.js instead. cacheable="false" is the most common Magento performance anti-pattern precisely because it fixes a display bug instantly and costs the whole page its cache permanently.
Often the opposite. Magento's default checkout is already a single URL with two sequenced steps. Replacing it adds another large participant to an already crowded extension surface, and slower checkouts are a documented outcome. Work through the configuration items first.
Get in Touch

Find Out Which Layer Is Slowing Your Checkout

An engineer profiles the real requests on your real store, separates server time from client time, and tells you what to fix first.

Usually responds within 24 hours
I want to