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/Controller/ExceptionController.php
Processes an AccessDenied exception into an HTTP 403 response.
ExceptionController::on404Html in drupal/core/lib/Drupal/Core/Controller/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 2662
API for the Drupal menu system.

Code

function menu_reset_static_cache() {
  Drupal::entityManager()
    ->getStorageController('menu_link')
    ->resetCache();
  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_link_get_preferred');
}