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.
Instead of trying to generate all sitemaps at once, we should add a {xmlsitemap_sitemap}.queued int column for when a sitemap is requested to be regenerated. Cron operations then pull in the specific sitemaps that have been queued, and update those.
Comment | File | Size | Author |
---|---|---|---|
#3 | xmlsitemap_queue_support-786486-3.patch | 4.44 KB | jsobiecki |
#1 | 786486-sitemap_update_queue.patch | 4.53 KB | jsobiecki |
Comments
Comment #1
jsobiecki CreditAttribution: jsobiecki commentedHi Dave,
I had large problems with xmlsitemap cron execution on medium scale drupal site (200k nodes, split in 20 separate sitemaps). My problems were out of memory errors during sitemaps file execution.
As a solution, I replaced unprogressive batch solution used in xmlsitemap module with sitemap regenerations queue (by using drupal_queue module). Attached patch describes those changes (patch against 6.x-2.0-beta2). It's still bit dirty solution, but it works for me and can be considered as early proof of concept.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThe patch needs to be generated for 7.x-2.x-dev and use the git repository instead of a file release.
Comment #3
jsobiecki CreditAttribution: jsobiecki commentedAttached patch is created against branch 7.x-2.x from git repository.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedShould be