Change record status: 
Project: 
Introduced in branch: 
8.6.x
Introduced in version: 
8.6.0
Description: 

menu_cache_clear_all() is deprecated.

To clear the menu cache inject the cache.menu service and call its invalidateAll() method or do \Drupal::cache('menu')->invalidateAll().

Impacts: 
Module developers