Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
So I have following setting enabled:
* Node expiration on update/delete for node pages and front page
* Menu link/insert/update for 5-depth links
Even if I change a node (but do not update anything in the menu tab), my site has 600+ items added to the queue - it should not happen because menu link was not in fact updated.
Comment | File | Size | Author |
---|---|---|---|
#3 | expire-menu_link-2373341.patch | 2.37 KB | pbosmans |
Comments
Comment #1
dealancer CreditAttribution: dealancer commentedComment #2
SpleshkaNice point, this issue shouldn't happen in a real life. This is definately the issue where we need to pay some attention :)
Comment #3
pbosmans CreditAttribution: pbosmans at UC Leuven-Limburg for UC Leuven-Limburg commentedWe had tesame problem and in combination with the auth_cache module, the number of expired pages can grow fast. And that was an performance issue for our editors when they changed an item.
So i've created a patch that :
- Will act tesame if the page is at top level of the menu, because the top level of the menu is display on all our pages.
- If it's a child of one op the top-level pages, then only the children, the siblings and the parent of the updated page will be expired.
Comment #4
pbosmans CreditAttribution: pbosmans at UC Leuven-Limburg for UC Leuven-Limburg commentedComment #5
brockfanning CreditAttribution: brockfanning commentedWould it be possible for anyone to clarify what exactly is happening? I believe this is happening to us, but I'm not sure. In particular, what does "this links" in this issue title refer to?
Comment #6
brockfanning CreditAttribution: brockfanning commentedI haven't been able to recreate the problem of a node edit triggering any menu link expirations. I have noticed that the menu admin page's drag-and-drop feature causes a lot of duplicate expirations. For example if you drag the bottom menu link up to the top and click the save, the entire menu tree of links will be expired once for each menu item - so if there are 20 menu items, the same array of URLs is expired 20 times. I don't know an easy way around that, since I guess hook_menu_link_update is called for each link because of the weight change.
But that's a separate issue from what this thread is about. If there are any particular steps I should take to try and recreate this, I'm happy to give it a try.