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.
So, the xmlsitemap_xmlsitemap_index_links() function performs an entity query, but the problem is it never adds a condition against the xmlsitemap table to only look at items that have not yet been indexed. This is a huge regression from Drupal 7 and a major loss of functionality. This would be a big reason why people don't have content showing up in the sitemap.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3150732-fix-index-links-loops-same-entities.patch | 8.44 KB | Dave Reid |
|
Comments
Comment #2
Dave ReidComment #3
Dave ReidComment #4
Dave Reid* xmlsitemap_link_bundle_access is no longer a valid query tag. The hook xmlsitemap_query_xmlsitemap_link_bundle_access_alter() has been removed. The entity_type_id, bundle, and entity_info query metadata is also no longer available. Entity queries automatically have the 'entity_type' metadata that can be used instead.
* xmlsitemap_index_links_alter is a new query tag available when performing an un-indexed entity query.
* xmlsitemap_xmlsitemap_index_links() has been updated to only query against items that are not also found in the xmlsitemap table.
* xmlsitemap_xmlsitemap_index_links() has been updated to run the 'process callback' from hook_xmlsitemap_link_info() instead of assuming it will be the default entity one
Comment #6
Dave ReidCommitted #4 to 8.x-1.x.