Add the option to disable the output of lastmod, changefreq and priority in sitemaps

Created on 26 January 2023, about 2 years ago
Updated 12 October 2023, over 1 year ago

Add the option to disable the output of lastmod, changefreq and priority in the sitemaps settings in order to reduce file size.

Feature request
Status

Closed: works as designed

Version

4.0

Component

Code

Created by

🇪🇸Spain gxleano Cáceres

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

Comments & Activities

  • Issue created by @gxleano
  • Issue was unassigned.
  • Status changed to Closed: works as designed about 2 years ago
  • 🇩🇪Germany gbyte Berlin

    Are you working on that feature? If yes feel free to reassign it to yourself and provide a merge request so people can use it to patch the module. This won't be going into the main branch however as
    a) file size should not be a concern as we split the sitemaps into smaller sitemaps if they are too big
    b) this can easily be achieved by creating a custom sitemap generator plugin and configuring the sitemap to use it instead of the default plugin. Implementation is as easy as extending DefaultSitemapGeneratorPlugin and overriding its ::addUrl() function.

  • Assigned to gxleano
  • @gxleano opened merge request.
  • 🇹🇷Turkey rgnyldz

    I manually applied the changes in the merge and seems to be working just fine with 4.1.6 . I believe this could be inside the module since google does not care anymore about these metrics.

    If not could someone provide a patch?

Production build 0.71.5 2024