Posted by bojanz on May 12, 2012 at 11:19pm
3 followers
| Project: | Drupal Commerce |
| Version: | 7.x-1.x-dev |
| Component: | Developer experience |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Title says it all. menu_rebuild() rebuilds the menu immediately. variable_set('menu_rebuild_needed', TRUE) schedules the rebuild for the next page load.
This means that even if you call menu rebuilding code 10 times, the variable_set way will ensure it's not rebuilt more than needed (which is once).
This improves install performance, where we frequently had menu rebuilds happening multiple times for no good reason.
Comments
#1
Easy enough.
#2
Great, very nice.
#3
Automatically closed -- issue fixed for 2 weeks with no activity.