Why does the sitemap plugin only update once per day?

Hello,

I have found an issue with XML Sitemap Plugin. New topic URLs are not updating.

Ref: Video

It looks like it updates once a day. I’m guessing because it’s assumed that that’s as often as a crawler will ask for it.

https://github.com/communiteq/discourse-sitemap/blob/master/plugin.rb#L39

5 Likes

That means, I need to edit code for modifying Sitemap update time period? :thinking:

Thanks for the response.

I doubt that you “need” to, but if you want it to change every minute, I suspect that if you change “24.hours” to “1.minute” it’ll update more often.

Note: I have never seen that Rails.cache.fetch function and am only guessing what it does.

1 Like

I appreciate your kind response. However, I have decided to remove Sitemap plugin.

1 Like