This module can trigger multiple menu rebuilds in one request, e.g. when reverting features.
One way to work around this problem would be adding a parameter to skip menu_rebuild(), which would default to the current behavior. Thus the calling code could call menu_rebuild() just once at the end. See e.g. #2989623: Performance enhancement: Skip menu_rebuild() when deleting multiple pages for how this parameter could be used.
There are other possibilities that I didn't explore, such as registering a shutdown function.
| Comment | File | Size | Author |
|---|---|---|---|
| ctools-skip-menu-rebuild.patch | 910 bytes | mfb |
Comments
Comment #2
mfbComment #3
joseph.olstadlooks great
Comment #4
joseph.olstadyes please get this in.
it is holding up
#2989623: Performance enhancement: Skip menu_rebuild() when deleting multiple pages
Comment #6
joelpittetI've committed this to the dev release, thanks for the performance patch
Comment #7
mfb\o/🌍🐇🐋
Comment #9
joseph.olstad@joelpittet, before I can tag a release of features with this in it #2989623: Performance enhancement: Skip menu_rebuild() when deleting multiple pages , I need you to tag a ctools release 7.x-1.15