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.
Would there be other takers who would like to see an option to limit the number of nodes added to the sitemap by adding a configuration option like "Limit to recent N days"
This would be useful for large sites and where you want frequent updates to the sitemap (Eg: #760396: 404 page not found errors on accessing certain sitemap pages) and you don't want to get 404s from Google.
@Dave - Can this be done by clearing up the xmlsitemap table in a cron hook of nodes older than N days and modifying the xmlsitemap_node cron to not fill it again with older nodes?