Currently there is a setting to regenerate the sitemap on every cron run. If you don't want to regenerate the sitemap on every cron run, but only every x hours, you have to use drush or do it manually. Generating the sitemap may take a lot of system resources, so you may not want to do it every time, especially since (afaik) the sitemap isn't checked as often by search engines even for sites with a high page rank. Since drush may not be available on every system and relying on manual execution is prone to human error, I propose to add a setting to optionally define a cron regeneration interval, that would regenerate the sitemap only, if x hours elapsed since the last generation. By default, the sitemap would still be regenerated on every cron run.

CommentFileSizeAuthor
#2 2889575-02.patch3.76 KBfeyp

Comments

FeyP created an issue. See original summary.

feyp’s picture

Assigned: feyp » Unassigned
Status: Active » Needs review
StatusFileSize
new3.76 KB

Attached is a patch against 8.x-2.x-dev.

  • gbyte.co committed 60836c5 on 8.x-2.x authored by FeyP
    Issue #2889575 by FeyP: Provide cron regeneration interval setting
    
gbyte’s picture

Status: Needs review » Fixed

Changed a couple of things and commited to dev. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.