Change sitemap format (tags)
How difficult and time-consuming would it be to add lastmod tags to the sitemap? To use them instead of priority and frequency tags. As far as I understand, this is quite difficult, because I only see a regular Unix timestamp in the database. And this timestamp only stores the creation time. What can you say about this?
These pages do have lastmod, but not the top sitemap.xml. https://community.nodebb.org/sitemap/topics.1.xml
Adding it at the top level would require looking at every topic to get the most recent lastmod.
The below pages? https://community.nodebb.org/sitemap/pages.xml https://community.nodebb.org/sitemap/categories.xml
Or adding lastmod into https://community.nodebb.org/sitemap.xml?
Not really sure what value you would set it to if you were adding it to the top level sitemap.xml.
@baris what about adding
lastmodfor topics' sitemap? There is not much sense adding it for pages or categories, IMHO.Are you talking about adding
lastmodto https://community.nodebb.org/tags/sitemap.rss? Adding it shouldn't be hard, topic objects do have alastposttimefield, but changig the order for the tags feed is a bit more complex sincetag:${String(req.params.tag)}:topicsstores topics with the score being the topic creation time. I think this makes more sense for tag feed.We could update the recent.rss feed so you could pass in a tag, so you could have something like
https://community.nodebb.org/recent.rss?tag%5B%5D=sitemapYes that's correct, especially if you want it to be up to date as soon as new posts are made in those topics.
No, I meant sitemap files included in default main sitemap.xml. Not
lastmodfor the RSS feed. That kind oflastmodxml tags> looking at every topic to get the most recent lastmod
That exactly what I meant! It's rather hard to implement with no significant performance degradation as far as I understand. Am I right?