# Use WP Rocket, FlyingPress or Another Cache Plugin on xCloud (Without Caching Twice)

> Keep WP Rocket, WP Super Cache, W3 Total Cache, FlyingPress or another cache plugin on xCloud: which Caching settings to change so only one page cache answers.

You can keep your own cache plugin on an xCloud WordPress site. The rule is **one page cache per site**. If you use **WP Rocket**, **WP Super Cache** or **W3 Total Cache**, select it on the site's **Caching** page: xCloud switches its own page cache off and writes the Nginx rules for that plugin. If you use another plugin, such as FlyingPress, turn **Page Caching** off in xCloud so only your plugin caches pages.

Two page caches on one site serve old pages and make it hard to know which cache to clear. This guide covers the xCloud side only: what to switch on or off, what happens to Redis, and how to check which cache answered. Your plugin's own settings stay in its WordPress settings screen.

## What to do for your plugin

| Your cache plugin | On the site's Caching page (Nginx server) | What xCloud does |
|---|---|---|
| **WP Rocket** | Keep **Page Caching** on, select **WP Rocket**, click **Save Changes** | Turns FastCGI Nginx off and sets up the server rules WP Rocket needs, so cached pages load straight from the server |
| **WP Super Cache** or **W3 Total Cache** | Keep **Page Caching** on, select the plugin, click **Save Changes** | Turns FastCGI Nginx off and applies the standard WordPress Nginx rules for that plugin |
| **Any other plugin** (FlyingPress and others) | Turn **Page Caching** off | Removes its own page cache, so your plugin is the only one |
| **xSpeed Cache** | Select **xSpeed Cache** instead | Installs and configures it for you. See [configure xSpeed Cache](/docs/configure-xspeed-cache-settings-xcloud/) |

**Redis Object Cache** is a separate switch below the page cache options. It caches database results, not pages, so it doesn't conflict with a page cache plugin. Step 4 explains when to keep it.

## Before you start

- The site runs on an **Nginx** server. OpenLiteSpeed servers are covered in [On OpenLiteSpeed servers](#on-openlitespeed-servers).
- Your cache plugin is **installed and active** in WordPress. For WP Rocket, WP Super Cache and W3 Total Cache, xCloud checks this before it changes anything. Use **Magic Login** on the site page to open wp-admin.
- A recent backup is a good idea before you change caching. See [site backups](/docs/backups-in-xcloud/).

## Step 1: Open the site's Caching page

In xCloud, open the site and go to **WordPress → Caching** in the site menu. The **Page Caching** switch is at the top, with the page cache options below it.

## Step 2: Select WP Rocket, WP Super Cache or W3 Total Cache

Skip to Step 3 if your plugin isn't one of these three.

1. If **Page Caching** is off, turn it on.
2. Select your plugin's card: **WP Rocket**, **WP Super Cache** or **W3 Total Cache**.
3. Click **Save Changes**.
4. If the site already uses xSpeed Cache or another plugin, click **Yes, switch it!** in the confirmation. The message reads "Are you sure you want to switch to <plugin> plugin?".

![Select 'WP Super Cache' on the site's Caching page in xCloud, with Page Caching on](/_landing/docs/use-another-cache-plugin-on-xcloud-image-1.png)

After that, xCloud shows "<plugin> Configuration started we'll notify you once it's enabled" and makes the change in the background. In the same change it turns off **FastCGI Nginx**, xCloud's own page cache, so the two never run together. If the site used **xSpeed Cache** before, xCloud turns xSpeed Cache off first, because only one page cache plugin can run on a site.

If the plugin isn't active in WordPress, nothing changes and you see "<plugin> is not installed or activated on this site". Activate it in wp-admin, then save again.

## Step 3: For any other plugin, turn Page Caching off

Use this step for FlyingPress or any plugin that isn't listed on the **Caching** page.

1. Click the **Page Caching** switch to turn it off.
2. Click **Yes, disable it!** in the confirmation. The message names the page cache that is active now, for example "Are you sure you want to disable FastCGI Nginx?".

![Click 'Yes, disable it!' to turn off Page Caching in xCloud before using another cache plugin](/_landing/docs/use-another-cache-plugin-on-xcloud-image-2.png)

xCloud's own page cache stops. Your plugin stays active with its settings, and it now caches pages on its own from WordPress. xCloud only removes a plugin it installed itself, which is xSpeed Cache.

## Step 4: Decide on Redis Object Cache

The **Redis Object Cache** switch sits below the page cache options.

![The 'Redis Object Cache' switch below the page cache options on the xCloud Caching page](/_landing/docs/use-another-cache-plugin-on-xcloud-image-3.png)

- **Your plugin has no object cache** (most page cache plugins): keep **Redis Object Cache** on. It speeds up the database side and works alongside your page cache plugin.
- **Your plugin has its own object cache** and you want to use it: turn **Redis Object Cache** off. WordPress can use only one object cache at a time, so two would replace each other.

If you use Object Cache Pro, follow [integrate Object Cache Pro with xCloud](/docs/integrate-object-cache-pro-with-xcloud/). To point another plugin's object cache at the server's Redis, see [find your Redis credentials](/docs/how-to-find-the-redis-credentials/).

## Step 5: Check that only one page cache answers

Request a page twice while logged out and read the headers. Logged-in visitors skip page caches, so a browser where you're signed in to wp-admin shows nothing useful. From your computer:

```bash
curl -sI https://example.com/ | grep -i "x-cache"
```

Replace `example.com` with your domain. This is what each header means:

| Header you see | Which cache answered |
|---|---|
| `X-Cache: MISS`, `HIT` or `BYPASS` | xCloud's **FastCGI Nginx** page cache. `BYPASS` means the request skipped the cache, such as a logged-in visitor, a cart page or wp-admin |
| `X-Cache-WP-Super-Cache: HIT` or `BYPASS` | The Nginx rules xCloud set up for **WP Super Cache**. `HIT` means the request can be served from WP Super Cache's files, not proof that a cached page was served. `BYPASS` means the request isn't one the rules cache, such as a logged-in visitor |
| No `X-Cache` header | xCloud's page cache is off, so your plugin (WP Rocket, W3 Total Cache, FlyingPress or another) is the page cache. Check its own documentation for the header or page comment it adds |

**Caching twice looks like this:** a plain `X-Cache: HIT`, `MISS` or `BYPASS` line (not `X-Cache-WP-Super-Cache`) appears while you have a plugin selected, or after you turned **Page Caching** off for another plugin. Open the **Caching** page again and check which option is saved.

You can also check headers in your browser: open a private window, open developer tools, go to the **Network** tab, reload, and select the first request.

## Clear the old cache after a switch

Pages saved by the previous cache can still be served for a while. After you switch, clear your plugin's cache from its settings in wp-admin. If you also use the **Cloudflare Edge Cache** on the **Caching** page, clear it too. The edge cache sits in front of your server and works with a page cache on the server, so keeping it on is not caching twice. See [Edge Full Page Cache](/docs/enable-the-edge-full-page-cache/).

## On OpenLiteSpeed servers

On an OpenLiteSpeed server, the **Caching** page has a **LiteSpeed Cache** switch and an **xSpeed Cache** switch instead of the options above. To use another cache plugin, keep both switches off so your plugin is the only page cache.

## If something goes wrong

- **"A cache change is already running for this site. Wait for it to finish, then try again."** A previous switch is still running. Wait for it to finish, then save again.
- **The switch didn't finish.** If xCloud can't apply the new rules, it tries to put the site back on the cache it had before. If the Caching page still doesn't show the option you picked, contact support.
- **Changes don't show on the site.** Clear your plugin's cache and the edge cache, then follow [troubleshoot caching issues in WordPress](/docs/troubleshoot-caching-issues-in-wordpress/).

## Prefer to move to xSpeed Cache?

xSpeed Cache is xCloud's recommended caching plugin and comes with your xCloud plan. It can import settings from WP Rocket, LiteSpeed Cache, W3 Total Cache and WP Super Cache. See [switch from WP Rocket or LiteSpeed Cache to xSpeed Cache](/docs/switch-wp-rocket-or-litespeed-cache-to-xspeed-cache-xcloud/), [the best xSpeed Cache settings](/docs/best-xspeed-cache-settings-xcloud/), and the plugin-side steps in xSpeed's [migration guide](https://xspeedcache.com/docs/migration/) and [moving from WP Rocket](https://xspeedcache.com/blog/migrate-from-wp-rocket/). For how all of xCloud's caches fit together, read [how caching works in xCloud](/docs/how-caching-works-in-xcloud/).

## Frequently asked questions

### Do I need to turn off xCloud's page cache before I pick WP Rocket, WP Super Cache or W3 Total Cache?

No. When you select one of those plugins on the Caching page and save, xCloud turns its own FastCGI Nginx page cache off for you, then writes the Nginx rules for the plugin you picked.

### My plugin isn't listed on the Caching page. Can I still use it?

Yes. Turn the Page Caching switch off so xCloud's page cache stops, then let your plugin cache pages from WordPress. xCloud doesn't deactivate your plugin or change its settings.

### Should Redis Object Cache stay on with another cache plugin?

Keep it on if your plugin doesn't have its own object cache. If your plugin does, use only one of the two, because WordPress can use only one object cache at a time.

### How do I know only one page cache is answering?

Look at the response headers of a page while logged out. A plain X-Cache header (X-Cache: HIT, MISS or BYPASS) means xCloud's FastCGI page cache is on. With WP Super Cache selected you see X-Cache-WP-Super-Cache instead, which is expected. With WP Rocket or any other plugin selected, there is no X-Cache header. A plain X-Cache line (not X-Cache-WP-Super-Cache) while a plugin is selected means xCloud's page cache is still on and you are caching twice.

If you run into any issues with your cache setup, feel free to reach out to our [support team](/docs/access-built-in-support-portal-in-xcloud/).
