<p>After Greg Stewart's help I found that the reason that the Cache wasn't updating when altering the hierarchy of the Structure is:</p>

<p><strong>There were Stuck background tasks.</strong></p>

<p><a href="https://craftcms.com/support/stuck-tasks" rel="nofollow">Here is the official documentation on the matter.</a></p>

CC BY-SA 3.0
2015-12-18T12:44:22.507Z
2015-12-18T12:44:22.507Z
Adam Menczykowski
<p>I have 2 structures that are used for Menus on the site. Each entry is a link to either an entry / asset or external URL. The hierarchy is used to generate a menu .</p>

<p>To save on page load time, the two menus are both wrapped up in <code>{% cache globally %}</code> tags which has worked really well to speed up things. </p>

<p>My problem is that when altering the position / hierarchy of the structure entries from Craft, the front-end doesn't update accordingly which I can only put down to the cache blocking the update, as the structure isn't re-triggering the cache update.</p>

<p>Any tips for long term maintenance on this site feature? Some of the content editors will want to alter this stuff, but without disabling the cache myself? The only user that can manually flush the template cache is myself, the admin.</p>

<p>Thanks in advance y'all!</p>

<p>Merry Christmas! :-)</p>

CC BY-SA 3.0
2015-12-17T12:45:58.410Z
BTW I have removed the cache tags for now, which allows them to make the changes, but I'd like to discuss this point to see what another alternative would be. Thanks
Adam Menczykowski
CC BY-SA 3.0
2015-12-17T15:15:15.247Z
How does your cache tag look like? Just `{% cache %} content {% endcache %}` without attributes?
Do you notice any stuck background tasks in the Craft admin panel when you using cache tags?
Greg Stewart
CC BY-SA 3.0
2015-12-17T21:02:19.297Z
Yes I did notice there are stuck background tasks for cache in the admin! And yes that is how the cache tags are structured. Thanks
Adam Menczykowski
<structure><cache><navigation>
Altering Structure order doesn't update cache
# Altering Structure order doesn't update cache

(Asked by: username_0 on 2015-12-17)

I have 2 structures that are used for Menus on the site. Each entry is a link to either an entry / asset or external URL. The hierarchy is used to generate a menu .

To save on page load time, the two menus are both wrapped up in `{% cache globally %}` tags which has worked really well to speed up things.

My problem is that when altering the position / hierarchy of the structure entries from Craft, the front-end doesn't update accordingly which I can only put down to the cache blocking the update, as the structure isn't re-triggering the cache update.

Any tips for long term maintenance on this site feature? Some of the content editors will want to alter this stuff, but without disabling the cache myself? The only user that can manually flush the template cache is myself, the admin.

Thanks in advance y'all!

Merry Christmas! :-)

**Tags:** structure, cache, navigation
> **Comments:**
> **username_0**: BTW I have removed the cache tags for now, which allows them to make the changes, but I'd like to discuss this point to see what another alternative would be. Thanks  
> **username_1**: How does your cache tag look like? Just `{% cache %} content {% endcache %}` without attributes? Do you notice any stuck background tasks in the Craft admin panel when you using cache tags?  
> **username_0**: Yes I did notice there are stuck background tasks for cache in the admin! And yes that is how the cache tags are structured. Thanks  

---

## 1 answers

### Answer by username_0 on 2015-12-18. Score: 0 | Accepted answer

After Greg Stewart's help I found that the reason that the Cache wasn't updating when altering the hierarchy of the Structure is:

**There were Stuck background tasks.**

[Here is the official documentation on the matter.](https://craftcms.com/support/stuck-tasks)


---

