Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm working on a site with lots of nodes and it is preferable for us to run link indexing and site regeneration on demand through drush instead of on cron. This way we don't need to take the performance hit of indexing xmlsitemap during peak times where it still may be necessary to invoke hook_cron for other tasks.
We want to run indexing and regeneration with drush nightly during off-peak hours through Jenkins/Hudson. Attached is a patch that adds a switch to turn off intensive tasks through cron. The patch should not affect anyone who doesn't change the default value of the switch.
Comment | File | Size | Author |
---|---|---|---|
xmlsitemap-cron-optional.patch | 3.32 KB | andrewlevine | |