---
title: Sitemap Preload
description: Preload your WordPress cache from XML sitemaps with Powered Cache Premium. Learn which sitemaps are detected automatically and how sitemap URLs are warmed.
url: "https://poweredcache.com/docs/sitemap-preload/"
updated: "2026-12-02"
category: Preloading
---

# Sitemap Preload

Sitemap Preload adds the pages listed in your XML sitemaps to every full cache preload. Your sitemap is usually the most complete list of the pages you want search engines and visitors to find, so warming it makes sure those pages are cached, including pages that the normal preload sources miss.

**Available in:** Powered Cache Premium
**Where to find it:** Powered Cache → Preload
**Requires:** [Page caching](/docs/page-caching/) turned on, and the PHP SimpleXML extension (installed on almost all hosts).

## How sitemap preloading works

Sitemap Preload is an extra URL source for the full preload described in [Cache Preload](/docs/cache-preload/). It does not have its own schedule. It runs whenever a full preload runs: automatic, daily, **Preload all pages now**, the admin bar **Preload Cache** command, or WP-CLI without source options. It does not need **Warm cache automatically**, so daily and manual full preloads read your sitemaps even when that switch is off.

A full preload finds URLs in groups. It preloads each group before it looks for the next one, in this order:

1. The home page and your **Additional Preload URLs**.
2. Your sitemaps, one at a time. A sitemap index is followed into its child sitemaps. The page URLs of each sitemap form one group.
3. Public posts, newest first.
4. Public archives.

URLs that are excluded from caching or never cached (such as WooCommerce cart and checkout pages) are skipped. A URL that was already checked in the same run is not requested again. Only page URLs on your own site are preloaded. URLs on other domains are ignored. Results appear in the preload status panel together with the other sources.

### With WP-CLI

`wp powered-cache preload` reads your sitemaps only when you run it without source options. If you add `--homepage`, `--post` or `--taxonomy` (even just one of them), only the sources you name are preloaded. Sitemaps and Additional Preload URLs are skipped for that run. The other options, such as `--limit`, `--interval`, `--force` and `--lang`, do not change the sources. See [WP-CLI commands](/docs/wp-cli-commands/#preload).

### On multisite networks

When Powered Cache is network-activated, one full preload covers every site in the network, and it runs on the main site. The Sitemap URLs list is shared by the whole network, and each site reads only the sitemaps that belong to it, so you can list subsite sitemaps there too. A sitemap that does not belong to any site in the network is read with the main site. Each site also reads the sitemap of a network-activated SEO plugin. A site that has no sitemap of its own in the list, and no SEO plugin sitemap, uses its WordPress sitemap instead, even when the list holds sitemaps of other sites. For example, if you list only the main site's sitemap, every subsite still reads its own `wp-sitemap.xml`. Only page URLs on a site's own domain are preloaded from its sitemaps.

When Powered Cache is activated on each site separately, every site runs its own full preload and reads its own sitemaps.

## Set up sitemap preloading

1. Go to **Powered Cache → Preload**.
2. Turn on **Sitemap Preload** (*Read URLs from sitemaps*).
3. Leave **Sitemap URLs** empty if you use a supported SEO plugin or the WordPress sitemap (see below). Otherwise, enter your sitemap address.
4. Click **Save Settings**.
5. Start a full preload with **Preload all pages now**, or wait for the next automatic or scheduled run.

Sitemap Preload is off by default. With an active license, **Apply Recommended Settings** turns it on.

## Settings

### Sitemap Preload

Adds sitemap URLs to full preloads. **Default:** off.

When you turn it off, a full preload that is running reads no further sitemaps. Pages from the sitemap it was working on are already in the queue, so they are still preloaded. Later full preloads do not read sitemaps.

### Sitemap URLs

Your own XML sitemap addresses, one per line. **Default: empty.** Use full URLs that start with `http://` or `https://`, for example:

```
https://example.com/sitemap_index.xml
https://example.com/landing-pages-sitemap.xml
```

You can list a sitemap index or individual sitemaps. Sitemaps that are detected automatically are added on top of the ones you enter, so you do not need to list them again.

## Sitemaps detected automatically

When one of these SEO plugins is active and its sitemap feature is on, Powered Cache adds its sitemap for you:

| Plugin | Sitemap that is added |
| --- | --- |
| Yoast SEO | `/sitemap_index.xml` |
| Rank Math SEO | `/sitemap_index.xml` |
| All in One SEO | `/sitemap.xml` |
| SEOPress | `/sitemaps.xml` |

**WordPress sitemap fallback:** if you did not enter any sitemap and no SEO plugin sitemap was found, Powered Cache uses the sitemap built into WordPress (`/wp-sitemap.xml`), as long as it is enabled. On a network-activated multisite, only the site's own sitemaps count here. See [On multisite networks](#multisite).

> **Changed in 4.1:** Sitemap pages are warmed by the same full preload as your other sources, so they follow the Full Cache Preload mode and Preload Speed and appear in the status panel. Sitemap pages come right after the home page and Additional Preload URLs, the WordPress sitemap is used as a fallback, duplicate and excluded URLs are skipped, and turning the feature off stops reading sitemaps. Before 4.1, sitemaps were warmed in a separate background queue. This needs Powered Cache 4.1 and Powered Cache Premium 4.1.

## Troubleshooting

### Sitemap pages are not preloaded

- Open the sitemap address in a private browser window. It must return the XML sitemap, not a login page, an error or a page blocked by a firewall.
- Check that the page URLs in the sitemap use the same domain as your WordPress site address (Settings → General). Links to other domains, or to the same domain on a different port, are ignored.
- A sitemap that does not answer within 15 seconds, or that is larger than 10 MB, cannot be read. Split very large sitemaps into a sitemap index.
- Temporary errors (no response, HTTP 429 or a 5xx error) are retried. Other errors, such as 404, skip the sitemap for that run.
- If no full preload has run since you turned the feature on, click **Preload all pages now**.

For general preload problems, see [Preload Not Running](/docs/preload-not-running/). To read the details, turn on the [Debug Log](/docs/debug-log/): sitemap requests and skipped URLs are logged.

## For developers

Add or remove sitemaps with the `powered_cache_sitemap_preload_list` filter. Sitemap requests use the user agent `Powered Cache Preloader`, and their arguments can be changed with `powered_cache_sitemap_preload_request_args`. See the [Hooks Reference](/docs/hooks-reference/).

## Related docs

- [Cache Preload](/docs/cache-preload/): preload modes, speed and the status panel.
- [Page Caching](/docs/page-caching/)
- [WP-CLI Commands](/docs/wp-cli-commands/#preload) (Premium)
- [SEO plugin compatibility](/docs/plugin-and-theme-compatibility/#seo-plugins)
