Offshoot from #345984: Client-side caching of administration menu:
Ensure the hash properly changes when the menu is rebuilt.
I am absolutely not happy with the current implementation, and after tinkering intensively about it, we should really rebuild whenever hook_menu() is called.
AFAIK, menu_rebuild() is (almost?) always called at the end of system-altering requests, so we basically just need to ensure the _next_ request uses a new hash (i.e. truncate the cache table).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | admin_menu-DRUPAL-5--3.rebuild_.patch | 2.64 KB | sun |
| #1 | admin_menu-DRUPAL-5--3.rebuild.patch | 1.91 KB | sun |
Comments
Comment #1
sunThis is how I solved it in 5.x-3.x. (already committed)
Comment #2
sunSorry, this one it is.
Comment #3
sunA similar fix has been committed to 6.x-3.x+ via #276751: Allow to alter/customize/add links in administration menu.