Por que o plugin sitemap atualiza apenas uma vez por dia?

Olá,

Encontrei um problema com o Plugin XML Sitemap. Os URLs de novos tópicos não estão sendo atualizados.

Ref: Vídeo

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 curtidas

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 curtida

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

1 curtida