Change sitemap format (tags)

8 months ago by Twissell to c/general-discussion

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?

baris 2 points 8 months ago path: 0 22324446, hotness: undefined, score: 2, children: 0
baris 2 points 8 months ago path: 0 22320649, hotness: undefined, score: 2, children: 1
twissell 1 point 8 months ago

@baris what about adding lastmod for topics' sitemap? There is not much sense adding it for pages or categories, IMHO.

path: 0 22320649 22322777, hotness: undefined, score: 1, children: 0
baris 2 points 8 months ago

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

path: 0 22319438, hotness: undefined, score: 2, children: 0
baris 2 points 8 months ago

Yes that's correct, especially if you want it to be up to date as soon as new posts are made in those topics.

path: 0 22329981, hotness: undefined, score: 2, children: 0
twissell 1 point 8 months ago

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

path: 0 22320369, hotness: undefined, score: 1, children: 0
twissell 1 point 8 months ago

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

path: 0 22324534, hotness: undefined, score: 1, children: 0
general-discussion
general-discussion

@community.nodebb.org

login for more options
0
121
15

A place to talk about whatever you want

go to feed...