[wp-trac] [WordPress Trac] #64044: Request to change the limit of each sitemap to 1000 urls instead of 2000 urls as current
WordPress Trac
noreply at wordpress.org
Sat Sep 27 00:07:23 UTC 2025
#64044: Request to change the limit of each sitemap to 1000 urls instead of 2000
urls as current
-------------------------+----------------------
Reporter: phanduynam | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Sitemaps | Version:
Severity: normal | Resolution: wontfix
Keywords: 2nd-opinion | Focuses:
-------------------------+----------------------
Changes (by SirLouen):
* keywords: => 2nd-opinion
Comment:
After some testing and a little research, I have to confirm that the idea
of bringing it down to 1000 URLs per sitemap makes a lot of sense, and I
have observed that all major SEO plugins use 1000 or less URLs per sitemap
(Yoast, 1000, SEOPress, 1000 and RankMath, 200, by default).
This said, as expected, the 2000 was selected completely at random, more
specifically, [https://github.com/GoogleChromeLabs/wp-
sitemaps/commit/c17f3ebd6a812f6d413adab255be1202aa1d75ab it was originally
being calculated as 20 * 100].
Only God knows why specifically `20 * 100`. This kind of undocumented
change gives too much of room for imagination.
For these reasons and the ones stated by @phanduynam related to GSC, which
is a major player in sitemap-related topics, I'm in favor of reducing the
default constant to 1000. The lesser this constant number, the easier it
is to maneuver for sitemap users in this regard.
Replying to [comment:16 swissspidy]:
> Lowering the number of posts per page would have unintended consequences
like doubling the load on the website when tools access the sitemap. If
anything, I would actually ''increase'' the number, but that has negative
consequences as well (e.g. temporary 404s for some paginated requests).
Given that there is a hard limit of 50000 I completely doubt that
performance issues are relevant here. We are not talking about potentially
millions of posts in place. The limit is capped at 25 sitemap pages now,
or 50 if we add this patch. If anyone wants to play with millions of URLs
or massive sitemaps, the filters are there, but the other way around,
highly capped limit and low amount of urls per sitemap, seems to be the
most common use-case both in tools and plugins.
So as I've said, I'm in favor of reopening and adding the `needs-patch`
(pretty simple patch though).
Waiting for @desrosj verdict.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64044#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list