prestaconcept / PrestaSitemapBundle

A symfony bundle that provides tools to build a rich application sitemap. The main goals are : simple, no databases, various namespace (eg. google image), respect constraints etc.
MIT License
347 stars 100 forks source link

Generating Sitemap Index Without Sections #264

Open sirolad opened 3 years ago

sirolad commented 3 years ago

Description

Sometimes there is a need to clean up sections that are no longer relevant in the sitemap index. Creating a dump of all sections might not be feasible as this might time out. Is there a way to do this already or it would be better to create a flag to do this such that when next I run the command the section flag, I only get sections that are relevant only?

Example

yann-eugone commented 3 years ago

You've well analysed the situation. Sitemap sections are only removed during full dump.

The incremental dump feature cannot remove any section because there is no guarantee that a particular section is not filled somewhere else...

We will need some code to make this possible. So far I see 2 possibilities :