Title: XML Cache
Author: GoSuccess
Published: <strong>2024 年 1 月 26 日</strong>
Last modified: 2026 年 3 月 28 日

---

搜索插件

![](https://ps.w.org/xml-cache/assets/banner-772x250.png?rev=3491061)

![](https://ps.w.org/xml-cache/assets/icon.svg?rev=3491061)

# XML Cache

 作者：[GoSuccess](https://profiles.wordpress.org/gosuccess/)

[下载](https://downloads.wordpress.org/plugin/xml-cache.2.1.2.zip)

[实时预览](https://cn.wordpress.org/plugins/xml-cache/?preview=1)

 * [详情](https://cn.wordpress.org/plugins/xml-cache/#description)
 * [评价](https://cn.wordpress.org/plugins/xml-cache/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/xml-cache/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/xml-cache/#developers)

 [支持](https://wordpress.org/support/plugin/xml-cache/)

## 描述

This plugin creates an XML sitemap with all posts, pages, categories, archives and
tag pages, regardless of whether they are excluded from search engine indexing or
not.

The advantage over a normal sitemap is that no pages are excluded from the sitemap.
You can specify the XML cache sitemap in your cache plugin, such as [LiteSpeed Cache](https://de.wordpress.org/plugins/litespeed-cache/),
to fully warm up your website cache.

## 屏幕截图

 * [[
 * XML Cache Menu & Settings.
 * [[
 * Enable or disable XML cache for a specific post or page.

## 安装

The easiest way to install XML Cache is by visiting your **Plugins > Add New** menu.
Search for “XML Cache” and install the first result you see there.

To install with the zip file downloaded from this page:

 1. Login to your WordPress dashboard
 2. Visit the **Plugins > Add New** menu
 3. Click the **Upload Plugin** button at the top
 4. In the upload form that appears, click the **Choose file** button and select the**
    xml-cache.zip** file you downloaded here
 5. Click the **Install Now** button
 6. Once the page reloads, click the blue **Activate** link
 7. Done.

## 常见问题

### What is the URL to the sitemap?

The sitemap can be accessed at /cache.xml. You can also simply click on the “Open
Sitemap” button in the settings to open the sitemap and copy the URL from the browser
address bar.

### How can I exclude posts and pages from the sitemap?

Open the post or page you want to exclude. You will find the option to disable the
XML cache on the right.

### The XML Cache toggle does not appear for my custom post type. What can I do?

The block editor requires the custom post type to declare support for `custom-fields`.
If you registered the post type yourself, add it like this:

    ```
    'supports' => array( 'title', 'editor', 'custom-fields' )
    ```

If the post type is registered by another plugin, you can add support in your theme’s`
functions.php`:

    ```
    add_post_type_support( 'your_post_type', 'custom-fields' );
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「XML Cache」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ GoSuccess ](https://profiles.wordpress.org/gosuccess/)

「XML Cache」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/xml-cache/contributors)
为本插件所做的贡献。

[帮助将「XML Cache」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/xml-cache)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/xml-cache/)，查看[SVN仓库](https://plugins.svn.wordpress.org/xml-cache/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/xml-cache/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/xml-cache/)。

## 更新日志

#### 2.1.2

 * Wrapped admin bar icon in ab-icon span to fix display issues.

#### 2.1.1

 * Fixed TypeError in block editor when a custom post type does not support custom-
   fields.
 * Added FAQ entry for custom post type custom-fields requirement.

#### 2.1.0

 * Multilingual support for Polylang, WPML, and TranslatePress.
 * Admin bar integration with live URL count and quick actions.
 * WP-CLI commands: status and flush.
 * Site Health debug info section.
 * Auto-regeneration on cache invalidation.
 * Cache statistics on the admin settings page.
 * 5 new URL types: categories, tags, archives, custom post types, and attachments.
 * Per-request throttling to prevent redundant cache invalidations.
 * Responsive admin UI with container queries and pill-style stats badge.
 * Removed Symfony DI for a lighter footprint.
 * Updated all dependencies to latest versions.
 * Added direct file access protection to all PHP files.
 * Simplified GitHub workflows using 10up deploy actions.
 * Bumped minimum WordPress version to 6.4.
 * Tested up to WordPress 7.0.

#### 2.0.0

 * Complete rewrite using PSR-4 autoloading and Composer.
 * New React-based admin settings page.
 * Custom post type support.
 * REST API for settings and cache management.
 * Refactored URL collection and sitemap pagination.
 * WPCS compliance with strict types, docblocks, and sanitization.
 * Requires PHP 8.2.

#### 1.2.1

 * Fixed “Undefined variable $numpage”.

#### 1.2.0

 * XML cache now works if no permalinks are enabled.
 * Paginated categories, tag pages, blog page and frontpage are now also included
   in the XML sitemap.
 * Added blueprint for a live preview of the plugin.
 * Various optimizations.

#### 1.1.0

 * Paginated posts and pages are now also included in the XML sitemap.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **2.1.2**
 *  最后更新：**2 月前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 6.4 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 8.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/xml-cache/) 和 [German](https://de.wordpress.org/plugins/xml-cache/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/xml-cache)
 * 标签
 * [cache](https://cn.wordpress.org/plugins/tags/cache/)[litespeed cache](https://cn.wordpress.org/plugins/tags/litespeed-cache/)
   [pagespeed](https://cn.wordpress.org/plugins/tags/pagespeed/)[sitemap](https://cn.wordpress.org/plugins/tags/sitemap/)
   [xml](https://cn.wordpress.org/plugins/tags/xml/)
 *  [高级视图](https://cn.wordpress.org/plugins/xml-cache/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/xml-cache/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/xml-cache/reviews/)

## 贡献者

 *   [ GoSuccess ](https://profiles.wordpress.org/gosuccess/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/xml-cache/)