Spyke
general-discussion·General DiscussionbyTwissell

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?

View original on community.nodebb.org

Are you talking about adding lastmod to https://community.nodebb.org/tags/sitemap.rss? Adding it shouldn't be hard, topic objects do have a lastposttime field, but changig the order for the tags feed is a bit more complex since tag:${String(req.params.tag)}:topics stores 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=sitemap

2

No, I meant sitemap files included in default main sitemap.xml. Not lastmod for the RSS feed. That kind of lastmod xml tags

1

> 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?

1

You reached the end

Change sitemap format (tags) | Spyke