menu_cache_clear_all

  1. drupal
    1. 6
    2. 8
    3. 7
Versions
6 – 8 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

▾ 5 functions call menu_cache_clear_all()

book_uninstall in modules/book/book.install
Implements hook_uninstall().
menu_delete in modules/menu/menu.module
Delete a custom menu and all contained links.
menu_enable in modules/menu/menu.module
Implements hook_enable().
menu_rebuild in includes/menu.inc
(Re)populate the database tables used by various menu functions.
menu_save in modules/menu/menu.module
Save a custom menu.

Code

includes/menu.inc, line 2612

<?php
function menu_cache_clear_all() {
  cache_clear_all('*', 'cache_menu', TRUE);
  menu_reset_static_cache();
}
?>