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)

[Live Preview](https://zh-hk.wordpress.org/plugins/xml-cache/?preview=1)

 * [詳情](https://zh-hk.wordpress.org/plugins/xml-cache/#description)
 * [評價](https://zh-hk.wordpress.org/plugins/xml-cache/#reviews)
 *  [安裝](https://zh-hk.wordpress.org/plugins/xml-cache/#installation)
 * [開發](https://zh-hk.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.⌉⌊XML Cache Menu & Settings.⌉[

XML Cache Menu & Settings.

[⌊Enable or disable XML cache for a specific post or page.⌉⌊Enable or disable XML
cache for a specific post or page.⌉[

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' );
    ```

## 評價

There are no reviews for this plugin.

## 貢獻者及開發者

“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.

## 其它

 *  Version **2.1.2**
 *  Last updated **6 個月之前**
 *  Active installations **10+**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **7.0.6**
 *  PHP version ** 8.2 or higher **
 *  Languages
 * [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)
 * Tags
 * [cache](https://zh-hk.wordpress.org/plugins/tags/cache/)[litespeed cache](https://zh-hk.wordpress.org/plugins/tags/litespeed-cache/)
   [pagespeed](https://zh-hk.wordpress.org/plugins/tags/pagespeed/)[sitemap](https://zh-hk.wordpress.org/plugins/tags/sitemap/)
   [xml](https://zh-hk.wordpress.org/plugins/tags/xml/)
 *  [進階顯示](https://zh-hk.wordpress.org/plugins/xml-cache/advanced/)

## 評分

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/xml-cache/reviews/)

## 貢獻者

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

## 支援

有話想說？需要協助？

 [檢視支援論壇](https://wordpress.org/support/plugin/xml-cache/)