Stashing mechanism leads to URLs in the wrong sitemap

Created on 5 August 2025, 13 days ago

Problem/Motivation

When the sitemaps are generated and the max_execution_time is reached inside QueueWorkerDecorator::generate(). The current state is stashed in stashResults(). When the process continues the state is restored in unstashResults() but the sitemapProcessedNow is not restored correctly because it doesn't take the site variant into account correctly.

This leads to URLs ending up in the wrong sitemap.

Steps to reproduce

If you are not having URLs in the wrong sitemap you are likely just not running into the stashing mechanism. You can reduce the max_execution_time/generate_duration.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany Harlor Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024