Sitemap update period
Are there any ways (configuration options) to set sitemap.xml rebuild/update interval? Sitemap updates only after hitting the Clear sitemap cache button in the admin panel by default. Can this behavior be changed?
Are there any ways (configuration options) to set sitemap.xml rebuild/update interval? Sitemap updates only after hitting the Clear sitemap cache button in the admin panel by default. Can this behavior be changed?
Hello @twissell, right now the cache time is hardcoded to 24 hours in the source, we can make this a setting on the '/admin/settings/web-crawler' page. I've created an issue for it.
https://github.com/NodeBB/NodeBB/issues/13968
Thanks @baris !
As far as I know, most forum engines rebuild the sitemap cache only after manual clearing or certain scheduled tasks. If there’s no built-in interval setting, you may need to use a cron job or automation script to refresh it periodically.
Keeping the sitemap updated automatically is definitely better for faster indexing and SEO consistency.