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

7 calls to menu_cache_clear_all()
book_uninstall in drupal/core/modules/book/book.install
Implements hook_uninstall().
MenuRouterTest::testMenuLinkMaintain in drupal/core/modules/system/lib/Drupal/system/Tests/Menu/MenuRouterTest.php
Tests for menu_link_maintain().
menu_enable in drupal/core/modules/menu/menu.module
Implements hook_enable().
menu_menu_delete in drupal/core/modules/menu/menu.module
Implements hook_menu_delete().
menu_menu_insert in drupal/core/modules/menu/menu.module
Implements hook_menu_insert()

... See full list

File

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

Code

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