PrestaSitemapBundle
PrestaSitemapBundle copied to clipboard
Generating Sitemap Index Without Sections
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
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 :
- add command option/argument, with which you define the section(s) you wish to remove
- add config node that tells which section your app has, and use this value to remove other entries