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

評價

There are no reviews for this plugin.

貢獻者及開發者

“XML Cache” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

XML Cache 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 XML Cache 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.0.0

  • ### Highlights
    • Custom Post Types: Add support for public CPTs, toggleable in settings.
    • Sitemap: Refined URL collection and pagination; category/tag/archive/blog/front-page pagination aligned with permalink structure.
    • Admin UI: Refactored settings screen; copy sitemap URL action; improved UX and error handling.
    • Code quality: Major WPCS compliance (docblocks, sanitization/escaping, Yoda conditions); standardized strict_types formatting.
    • Architecture: Migrated to Composer with PSR-4 under src; introduced Symfony DI/Config; normalized API namespace casing (V1).
    • CI/CD: Added WordPress.org deploy workflow and plugin assets.
  • ### Requirements
    • WordPress 6.0+
    • PHP 8.2+ (due to Symfony 7.x dependencies)
  • ### Upgrade notes
    • PHP 8.2 is now required.
    • New setting custom_post_types_enabled defaults to enabled; adjust under Settings XML Cache if you don’t want CPTs included.