function menu_cache_clear_all

Clears all cached menu data.

This should be called any time broad changes might have been made to the router items or menu links.

Related topics

6 calls to menu_cache_clear_all()
book_uninstall in drupal/core/modules/book/book.install
Implements hook_uninstall().
menu_delete in drupal/core/modules/menu/menu.module
Delete a custom menu and all contained links.
menu_enable in drupal/core/modules/menu/menu.module
Implements hook_enable().
menu_router_rebuild in drupal/core/includes/menu.inc
Populates the database tables used by various menu functions.
menu_save in drupal/core/modules/menu/menu.module
Save a custom menu.

... See full list

File

drupal/core/includes/menu.inc, line 2631
API for the Drupal menu system.

Code

function menu_cache_clear_all() {
  cache('menu')
    ->deleteAll();
  menu_reset_static_cache();
}