menu_reset_static_cache

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 menu_reset_static_cache()

Resets the menu system static cache.

Related topics

▾ 3 functions call menu_reset_static_cache()

menu_cache_clear in includes/menu.inc
Clears the cached cached data for a single named menu.
menu_cache_clear_all in includes/menu.inc
Clears all cached menu data. This should be called any time broad changes might have been made to the router items or menu links.
system_flush_caches in modules/system/system.module
Implements hook_flush_caches().

Code

includes/menu.inc, line 2620

<?php
function menu_reset_static_cache() {
  drupal_static_reset('_menu_build_tree');
  drupal_static_reset('menu_tree');
  drupal_static_reset('menu_tree_all_data');
  drupal_static_reset('menu_tree_page_data');
  drupal_static_reset('menu_load_all');
  drupal_static_reset('menu_link_get_preferred');
}
?>