Resets the menu system static cache.
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');
}