-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreadme.txt
More file actions
107 lines (77 loc) · 4 KB
/
readme.txt
File metadata and controls
107 lines (77 loc) · 4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
=== XML Cache ===
Contributors: gosuccess
Tags: xml, cache, sitemap, litespeed cache, pagespeed
Requires at least: 6.4
Tested up to: 7.0
Stable tag: 2.1.2
Requires PHP: 8.2
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Generates an XML sitemap for cache plugins.
== Description ==
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.
== Screenshots ==
1. XML Cache Menu & Settings.
2. Enable or disable XML cache for a specific post or page.
== Frequently Asked Questions ==
= 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' );`
== Installation ==
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.
== Changelog ==
= 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.