From 46fe50ffa1d2922884822bbbd08da81a7e26faf8 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Fri, 23 Jul 2021 19:45:26 +0200 Subject: [PATCH] Decrease sitemap size to 25,000 objects Google allows up to 50,000 items in a single sitemap. This makes these sitemaps potentially very large. Even though Google allows up to 50 MB, too large sitemaps are still problematic, especially when it comes to troubleshooting in Google Webmaster Tools. Therefore, we minimise the limit of objects in a sitemap to 25,000 objects. This does not have any negative effects for Google as long as no more than 50,000 sitemaps are linked in the index sitemap. --- .../files/lib/system/worker/SitemapRebuildWorker.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php index 92e21d2bb3..9132d17a89 100755 --- a/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/SitemapRebuildWorker.class.php @@ -32,7 +32,7 @@ class SitemapRebuildWorker extends AbstractRebuildDataWorker /** * The limit of objects in one sitemap file. */ - const SITEMAP_OBJECT_LIMIT = 50000; + const SITEMAP_OBJECT_LIMIT = 25000; /** * Prefix for stored data in the registry. -- 2.20.1