# Why does the sitemap plugin only update once per day?

**URL:** https://meta.discourse.org/t/why-does-the-sitemap-plugin-only-update-once-per-day/81341
**Category:** Support
**Tags:** sitemap
**Created:** [February 23, 2018, 7:25pm UTC](https://meta.discourse.org/t/why-does-the-sitemap-plugin-only-update-once-per-day/81341 "2018-02-23T19:25:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [February 23, 2018, 7:25pm UTC](https://meta.discourse.org/t/why-does-the-sitemap-plugin-only-update-once-per-day/81341/1 "2018-02-23T19:25:12Z")

</div>

Hello,

I have found an issue with [XML Sitemap Plugin](https://github.com/communiteq/discourse-sitemap/). New topic URLs are not updating.

Ref: [Video](https://www.useloom.com/share/13d4f08c7e3a4c29a57f4b1f6a23c6fc)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 23, 2018, 7:32pm UTC](https://meta.discourse.org/t/why-does-the-sitemap-plugin-only-update-once-per-day/81341/2 "2018-02-23T19:32:48Z")

</div>

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](https://github.com/communiteq/discourse-sitemap/blob/master/plugin.rb#L39)

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [February 23, 2018, 8:25pm UTC](https://meta.discourse.org/t/why-does-the-sitemap-plugin-only-update-once-per-day/81341/3 "2018-02-23T20:25:10Z")

</div>

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

Thanks for the response.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 23, 2018, 8:33pm UTC](https://meta.discourse.org/t/why-does-the-sitemap-plugin-only-update-once-per-day/81341/4 "2018-02-23T20:33:49Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [February 24, 2018, 8:06am UTC](https://meta.discourse.org/t/why-does-the-sitemap-plugin-only-update-once-per-day/81341/5 "2018-02-24T08:06:01Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [February 25, 2018, 9:29pm UTC](https://meta.discourse.org/t/why-does-the-sitemap-plugin-only-update-once-per-day/81341/6 "2018-02-25T21:29:04Z")

</div>


