PrestaSitemapBundle icon indicating copy to clipboard operation
PrestaSitemapBundle copied to clipboard

Generating Sitemap Index Without Sections

Open sirolad opened this issue 4 years ago • 1 comments

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

sirolad avatar Nov 13 '20 10:11 sirolad

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

yann-eugone avatar Nov 17 '20 06:11 yann-eugone