function menu_reset_static_cache

Resets the menu system static cache.

Related topics

4 calls to menu_reset_static_cache()
ExceptionController::on403Html in drupal/core/lib/Drupal/Core/ExceptionController.php
Processes an AccessDenied exception into an HTTP 403 response.
ExceptionController::on404Html in drupal/core/lib/Drupal/Core/ExceptionController.php
Processes a NotFound exception into an HTTP 404 response.
menu_cache_clear in drupal/core/includes/menu.inc
Clears the cached cached data for a single named menu.
menu_cache_clear_all in drupal/core/includes/menu.inc
Clears all cached menu data.

File

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

Code

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');
}