# How to Speed Up WooCommerce on xCloud: The Defaults Do the Heavy Lifting, Tuning Trims the JavaScript

> Speed up WooCommerce on xCloud: a no cache vs xCloud defaults vs tuned xSpeed Cache lab test, which store settings help, which to skip, and a checkout check.

To **speed up WooCommerce** on xCloud, start with what is already there: xCloud switches on the xSpeed Cache page cache for new WordPress sites and serves cached pages from Nginx in a few milliseconds. Then tune for a store: a 24-hour expiry, the preloader, and Defer and Delay JavaScript with checkout scripts excluded, testing an order after each change.

We tested three setups on the same lab store: **no cache, xCloud's defaults and store-tuned settings**. The defaults did the heavy lifting on the server. Tuning trimmed the JavaScript a phone has to wait for, and two of the recommended settings made our test pages slower, so we tell you which ones to check.

This guide covers **what xCloud sets up for you**, the three-stage benchmark on home, shop, product and checkout pages, the settings worth turning on and the ones to test before you keep them, how to keep checkout working, and what xSpeed does not do for stores yet. Where to find and manage xSpeed on xCloud is in our [**xSpeed Cache configuration doc**](/docs/configure-xspeed-cache-settings-xcloud/), and the xSpeed team keeps its full list on its [**recommended settings page**](https://xspeedcache.com/docs/recommended-settings/).

## TL;DR

- **xCloud's defaults are the big win.** With no cache, PHP built every page in 55 to 100 ms on our lab server. With xCloud's defaults, cached home, shop and product pages left the server in 1 to 4 ms, without PHP.
- **For one visitor, that win is small in the browser.** It saved 60 to 90 ms of waiting per page on a throttled phone profile, and LCP did not change. It matters more on heavier stores and with many shoppers at once.
- **Tuning works on JavaScript.** Render-blocking scripts (scripts the browser must finish before it shows the page) fell from 8 to 2 on home and shop pages, and from 11 to 4 on the product page.
- **The product page got ready sooner with tuning:** it was ready to use 0.75 s sooner (DOMContentLoaded 2.80 s to 2.05 s), and fully loaded 3.36 s to 2.89 s.
- **Two settings cost a little on our theme:** the main image preload made shop LCP later, and Minify CSS made the product page's first paint later. Test them on your store before you keep them.
- **Checkout kept working** with the store exclusions in place: a test order went through and the variation picker worked.

## The Finding: The Defaults Already Did the Server Work

Most "speed up WooCommerce" guides compare a store with no cache against a store with a cache. On xCloud that step is already done when you create the site, because the page cache is part of the setup. So we measured three stages, and asked what each one adds.

**No cache → xCloud defaults** is a server change. Cached pages stop running PHP at all, which took server time per page from 55–100 ms to 1–4 ms on our box. **Defaults → tuned** is a browser change. The cached HTML was already as fast as it gets; tuning changed how much JavaScript a phone downloads and runs before the page is usable.

That tells you where to spend your time. First check that your pages really are cached (look for **X-XSpeed-Cache: HIT (nginx)**). Then tune scripts, one setting at a time, and keep only what your own pages show helps.

## What xCloud Sets Up for You by Default

When you create a WordPress site, **xSpeed Cache** is switched on and marked Recommended in the creation form. xCloud installs the free plugin from wordpress.org, turns its page cache on and writes the matching Nginx rules. Cached pages are then served straight from disk. The [**xSpeed Cache setup doc**](/docs/configure-xspeed-cache-settings-xcloud/) walks through those screens.

xCloud's own **Page Caching** and **Redis Object Cache** stay off, because two page caches on one site serve stale pages. xSpeed's own object cache connects to the server's Redis instead. You can see both on the site's **WordPress → Caching** page.

![The xCloud Caching page for a WooCommerce site with xSpeed Cache selected as the page cache and Redis Object Cache switched off](/_landing/blog/speed-up-woocommerce-xcloud-xspeed-cache-image-1.png)

Here is what we read from the plugin on a fresh lab site, straight after xCloud set it up, next to the store values we tested:

| Setting | As xCloud installs it | Store value we tested |
|---|---|---|
| Page cache | On, served by Nginx | On |
| Cache expiry | 168 hours | 24 hours |
| Object cache | On, server Redis | On |
| Preloader | Off | On, daily |
| Minify HTML / CSS | Off | On |
| Minify JavaScript | Off | Off until a test order passes |
| Defer and Delay JavaScript | Off | On, with store exclusions |
| Lazy-load images, embeds, videos | Off | On, first image loads right away |
| Main image rules | Empty | `post_type:product | featured` |
| Browser cache / GZIP | Off | On |
| Database cleanup | Manual | Weekly, safe items ticked |

One more thing we found in xCloud's own server setup: **Nginx already compressed pages and scripts with Brotli** on our lab server before we touched xSpeed. xSpeed's **GZIP** switch adds gzip on top for visitors whose browser does not accept Brotli.

## Benchmark: No Cache vs xCloud Defaults vs Tuned

### How we tested

- **Store:** WordPress 7.1.5, WooCommerce 11.3.1, the Storefront theme and WooCommerce's 18 sample products, on an xCloud-provisioned Nginx lab server (2 vCPU, 4 GB RAM, PHP 8.3, MySQL 8). xSpeed Cache 1.4.10, free plugin.
- **No cache:** xSpeed's page cache and object cache switched off, every other setting at xCloud's defaults (all off).
- **xCloud defaults:** xSpeed exactly as xCloud installs it.
- **Tuned:** the store values above, then **Re-sync Nginx Configuration** on the xCloud Caching page. All three ran on the same box on 28 November 2026, and we switched back to the defaults once to confirm they gave the same results again.
- **Server timing:** 11 requests per page from the server itself, so the network is left out.
- **Browser timing:** headless Chromium in the same lab, emulating a mid-range phone (4x slower CPU, 150 ms latency, 1.6 Mbps download), Brotli accepted, empty browser cache every run. Five runs per page; the numbers below are medians of the four warm runs (all five for checkout).
- **Checkout** was loaded with one product in the cart.

**Read this first:** lab containers are not production hardware, the lab network is not the internet, and there was one visitor at a time. Treat these numbers as **relative** (three setups on the same box), not as what your store will score.

### Server side: where the defaults win

| Page | No cache | xCloud defaults (cached) | Tuned (cached) |
|---|---|---|---|
| Home | 53–68 ms | 0.9–1.8 ms | 1.0–1.5 ms |
| Shop | 69–79 ms | 1.1–3.6 ms | 1.0–2.0 ms |
| Product | 78–102 ms | 1.3–2.2 ms | 1.5–5.8 ms |
| Checkout (never cached) | 72–81 ms | 74–92 ms | 109–127 ms |

With the page cache on, every cached request showed **X-XSpeed-Cache: HIT (nginx)**: Nginx answered from a file and PHP never ran. Two costs to know about. The first request after a cache purge has to build the page and its cache file (124–216 ms with the defaults, 0.87 s for the home page while tuned minified files were created), which is what the preloader is for. And **checkout got about 40 ms slower** with tuning, because minifying HTML runs on every uncached page.

### Browser side: small for one visitor, then JavaScript

In the table, **DOMContentLoaded** is when the page is ready to use, **LCP** is when the biggest image or text block shows, and **render-blocking scripts** are scripts the browser must finish before it shows the page.

| Page | Stage | Wait for first byte | DOMContentLoaded | Full load | LCP | Render-blocking scripts |
|---|---|---|---|---|---|---|
| Home | No cache | 0.15 s | 1.13 s | 1.88 s | 1.62 s | 8 |
| | Defaults | 0.09 s | 1.13 s | 1.90 s | 1.61 s | 8 |
| | Tuned | 0.09 s | 1.11 s | 1.86 s | 1.57 s | 2 |
| Shop | No cache | 0.18 s | 1.61 s | 2.18 s | 1.24 s | 8 |
| | Defaults | 0.09 s | 1.62 s | 2.19 s | 1.26 s | 8 |
| | Tuned | 0.09 s | 1.45 s | 2.24 s | 1.39 s | 2 |
| Product | No cache | 0.19 s | 2.80 s | 3.39 s | 2.05 s | 11 |
| | Defaults | 0.09 s | 2.80 s | 3.36 s | 2.06 s | 11 |
| | Tuned | 0.09 s | 2.05 s | 2.89 s | 2.04 s | 4 |
| Checkout | No cache | 0.14 s | 4.47 s | 4.56 s | 0.68 s | 59 |
| | Defaults | 0.17 s | 4.55 s | 4.80 s | 0.66 s | 59 |
| | Tuned | 0.22 s | 4.43 s | 4.69 s | 0.87 s | 53 |

The honest reading: **for one visitor on this light store, the page cache made little difference in the browser.** It cut the wait for the first byte by 60 to 90 ms, and LCP stayed within a few milliseconds, because the slow phone connection and the page's own files took most of the time. A store with more plugins takes longer to build each page (the xSpeed team's test store, below, needed about 1.4 s uncached), and many shoppers at once make PHP the bottleneck. That is where serving pages from Nginx counts most. We did not load-test here; our [**WooCommerce hosting benchmark**](/woocommerce-hosting-benchmark/) has load results.

**Tuning was the browser-side change.** The product page loaded less than half the JavaScript files (25 to 12) and was ready about 0.75 s sooner. Home barely changed, because Storefront's home page is light to begin with. LCP did not improve on any page.

### The xSpeed team's own benchmark

The xSpeed team ran a no-xSpeed vs recommended-settings comparison on a test store on an xCloud Nginx server (8 GB RAM, Dallas, Hello Elementor theme with Elementor), with mobile PageSpeed Insights. These are their numbers from their [**WooCommerce settings post**](https://xspeedcache.com/blog/best-xspeed-cache-settings-woocommerce/), not ours:

| Mobile LCP (xSpeed team) | No xSpeed | Recommended settings |
|---|---|---|
| Home | 4.7 s | 3.2 s |
| Shop | 3.5 s | 2.1 s |
| Checkout | 7.4 s | 6.0 s |

Their store needed about 1.4 to 1.5 s to send the first byte without a cache, against our 55 to 100 ms, which is why the cache moved their LCP and barely moved ours. Their comparison also bundles the cache and the tuning into one step. Ours splits them, and on xCloud the first step is already done for you.

## The Settings Worth Turning On, and the Ones to Test First

We used the store column of the xSpeed team's [**recommended settings page**](https://xspeedcache.com/docs/recommended-settings/), which lists a value for every setting for a blog and for a WooCommerce store. For each value with screenshots on xCloud, see our [**best xSpeed Cache settings for a blog vs a WooCommerce store**](/docs/best-xspeed-cache-settings-xcloud/) guide.

### Turn on: cache expiry of 24 hours

A store's pages change more often than a blog's. xSpeed already clears the right pages on its own: a price, stock or stock-status change clears the product page (the parent product for a variation), the Shop page, its category and tag pages and a static front page. Saving a product in wp-admin clears the whole site.

![xSpeed Cache Page Cache settings with Cache expiry set to 24 hours](/_landing/blog/speed-up-woocommerce-xcloud-xspeed-cache-image-2.png)

### Turn on: the preloader, daily

The preloader warms pages so the first shopper after a purge does not wait for the page build. In our lab that first request was 124–216 ms with the defaults and up to 0.87 s with tuning on, against 1 to 4 ms for every request after it.

### Turn on: Defer and Delay JavaScript, with the store exclusions

This is the setting that moved our numbers. Out of the box, xSpeed only keeps **jquery-core** and **jquery-migrate** (plus cookie banners) out of Defer and Delay, and both also run on the cart and checkout. So paste the store list into **Scripts to never defer or delay** before you turn them on (the list is in the checkout section below).

![xSpeed CSS and JavaScript settings with Minify HTML, Minify CSS, Defer JavaScript and Delay JavaScript on, Minify JavaScript off, and the store scripts listed under Scripts to never defer or delay](/_landing/blog/speed-up-woocommerce-xcloud-xspeed-cache-image-3.png)

### Test before you keep: the main image preload

Under **Resource Hints**, the xSpeed team recommends **Preload the main image** with a `post_type:product | featured` rule in **Main image rules**. The rule worked: the product page source had `<link rel="preload" as="image">` pointing at the product's featured image.

![xSpeed Resource Hints with the Main image rules field set to post_type:product | featured](/_landing/blog/speed-up-woocommerce-xcloud-xspeed-cache-image-4.png)

On our test it did not pay off. The product page LCP stayed the same, and on the shop page the preloaded image competed with the stylesheets on the slow connection: LCP was 1.39 s with it and 1.30 s without it, against 1.26 s on the defaults.

### Test before you keep: Minify CSS

With **Minify CSS** on, the product page's first paint was 1.41 to 1.46 s; with it off it was back to 1.25 s, the same as the defaults. These isolation runs were short (two to three warm runs each), so treat both results as a reason to measure your own theme, not as a rule.

### Leave off

**Minify JavaScript** and **Combine CSS/JavaScript** stay off, as the xSpeed team advises for stores. **Separate mobile cache** stays off: on Nginx it stops xSpeed serving cached pages from disk. **Load CSS without blocking** only acts on pages with Critical CSS, which is a Pro feature, so we left it off on the free plugin.

## Keeping Checkout Working: Delay/Defer Exclusions and a Test Order

Delay JavaScript holds scripts until the visitor scrolls, taps or types. On a product page that is fine. On a checkout, a payment button that waits for a tap is a lost sale, and xSpeed does not ship store exclusions yet, so the list is your job.

Paste this into **Scripts to never defer or delay** (one per line), as the [**xSpeed recommended settings**](https://xspeedcache.com/docs/recommended-settings/) give it:

```text
stripe
paypal
wc-add-to-cart
wc-add-to-cart-variation
wc-cart-fragments
wc-cart
wc-checkout
blocks/checkout-frontend
blocks/cart-frontend
blocks/mini-cart
recaptcha
challenges.cloudflare.com
```

Remove lines for plugins you don't use. For another payment gateway, add part of its plugin folder name (for example `woocommerce-square`); you can find it in the script's address in your browser's developer tools.

Then test, as a logged-out visitor in a private window:

1. **Variation picker:** open a variable product, choose the options and add it to the cart. On our lab store the Hoodie went into the cart and the header showed 1 item, with no script errors.
2. **Checkout form:** open the checkout without scrolling or clicking. The form should render on its own; ours did.
3. **Test order:** place an order with a test payment method. Ours went through to **Order received**.

![The WooCommerce block checkout on the lab store with the xSpeed store settings on, filled in with a test customer and Cash on delivery selected](/_landing/blog/speed-up-woocommerce-xcloud-xspeed-cache-image-5.png)

![WooCommerce Order received page after placing a test order with the tuned xSpeed Cache settings](/_landing/blog/speed-up-woocommerce-xcloud-xspeed-cache-image-6.png)

Our test used Cash on delivery only, so it proves the checkout scripts ran, not that Stripe or PayPal work on your store. Test your real gateway in its test mode. If something breaks, remove the last setting you turned on, click **Purge Cache** on the xCloud Caching page and test again. Test big changes on a [**staging site**](/docs/how-to-create-a-staging-environment-in-xcloud/) first.

## What xSpeed Cache Doesn't Do for Stores Yet

xSpeed Cache 1.4.10 does not do these for stores. The xSpeed team's [**recommended settings**](https://xspeedcache.com/docs/recommended-settings/) for 1.4.10 confirm the exclusion, cleanup and Geolocate points; the cart fragments and Asset Manager points are what we saw on our lab site:

- **Cart fragments:** we found no setting to switch off or limit WooCommerce's cart fragments request, so keep `wc-cart-fragments` in the exclusion list.
- **Script manager:** you cannot turn off a plugin's scripts on chosen pages. On our lab site the **Asset Manager** card showed as Pro and couldn't be opened.
- **Store exclusions:** Delay and Defer have no built-in WooCommerce exclusions; you paste the list above.
- **WooCommerce database cleanup:** the cleanup covers WordPress items (revisions, auto-drafts, trash, spam comments, expired temporary data and leftover meta), not WooCommerce sessions or old scheduled actions. Check **WooCommerce → Status → Scheduled Actions** yourself.
- **Geolocation and caching:** with **Geolocate (with page caching support)**, the `?v=` addresses WooCommerce adds are not cached today, so most of the store goes uncached. Use **Shop base address** unless your prices change by country. Plain **Geolocate** is not safe with any page cache.

## Run Your WooCommerce Store on xCloud

xCloud gives every new WordPress site the xSpeed page cache with Nginx rules written for you, the object cache connected to Redis, a **Purge Cache** button and **Re-sync Nginx Configuration** on the site's Caching page. You change the store settings in wp-admin; xCloud keeps the server side in step.

What xCloud does not do is tune xSpeed for your store. The settings above are yours to apply and test, and the gaps listed in the section above apply on xCloud too.

👉 See what else is included on our [**WooCommerce hosting**](/woocommerce-hosting/) page and compare plans on [**pricing**](/pricing/).

## Check the Cache, Then Trim Your Store's JavaScript

If you only remember one line: **on xCloud the page cache is already doing the server work, so spend your tuning time on JavaScript, keep only what your own pages show helps, and test checkout after every change.**

This week, check a product page for **X-XSpeed-Cache: HIT (nginx)**, set the expiry to 24 hours and turn on the preloader. Paste the store exclusions, turn on Defer, then Delay, and place a test order after each step. Measure your shop and product pages with and without the main image preload and Minify CSS, and switch off whichever makes them slower. For more on caching layers, read our guide to [**page caching, Redis and FastCGI caching**](/page-caching-redis-full-page-cache-fastcgi-caching/) and the [**xSpeed Cache introduction**](/introducing-xspeed-cache/).

If you have found this blog helpful, feel free to [**subscribe to our blogs**](https://xcloud.host/blog/) for valuable tutorials, guides, knowledge, and tips on web hosting and server management. You can also join our [**Facebook community**](https://www.facebook.com/groups/xcloud.community) to share insights and engage in discussions.

## Frequently Asked Questions

### Do I need to tune xSpeed Cache to speed up WooCommerce on xCloud?

Not for the biggest win. xCloud turns on xSpeed's page cache and writes the Nginx rules when you create the site, so cached shop and product pages leave the server in a few milliseconds without running PHP. Tuning trims the JavaScript a phone has to run. In our lab it made the product page ready about 0.75 seconds sooner, but it did not improve Largest Contentful Paint.

### Why did the page cache barely change LCP in your test?

Our sample store is small and the lab server had one visitor at a time, so PHP built each page in about 55 to 100 ms. The cache cut that to 1 to 4 ms, which saved 60 to 90 ms of waiting per page in the browser, small next to a slow phone connection. A store with more plugins takes longer to build each page, and many shoppers at once make PHP the bottleneck, which is where the cache matters most.

### Which scripts should I never defer or delay on a WooCommerce store?

Use the list from the xSpeed recommended settings: stripe, paypal, wc-add-to-cart, wc-add-to-cart-variation, wc-cart-fragments, wc-cart, wc-checkout, blocks/checkout-frontend, blocks/cart-frontend, blocks/mini-cart, recaptcha and challenges.cloudflare.com. Remove lines for plugins you don't use and add your own payment gateway. Then place a test order.

### Is the WooCommerce checkout page cached by xSpeed Cache?

No. Cart, checkout and My Account pages are excluded from the page cache by default, so every shopper gets a fresh page. Our checkout requests showed X-XSpeed-Cache: BYPASS in all three setups. Store tuning still changes how checkout loads, which is why you test an order after changing Defer or Delay JavaScript.

### What cache expiry should a WooCommerce store use in xSpeed Cache?

24 hours, as the xSpeed team recommends for stores. Price, stock and stock-status changes already clear the product page, the Shop page, its category and tag pages and a static front page, so a long expiry is not needed for fresh prices.
