You are here

function admin_menu_clear_cache in Administration menu 5.3

Same name and namespace in other branches
  1. 5.2 admin_menu.module \admin_menu_clear_cache()

Clear the cached admin menu tree.

2 calls to admin_menu_clear_cache()
admin_menu_menu in ./admin_menu.module
Implementation of hook_menu().
admin_menu_panels_cache in ./admin_menu.module
Implementation of hook_panels_cache().

File

./admin_menu.module, line 657
Render an administrative menu as a dropdown menu at the top of the window.

Code

function admin_menu_clear_cache() {

  // Flush cached menu tree.
  // cache_clear_all() does not support a leading wildcard.
  db_query("DELETE FROM {cache_menu} WHERE cid LIKE '%%:admin_menu'");
  variable_set('admin_menu_rebuild_links', TRUE);

  // Flush cached output of admin_menu.
  cache_clear_all('admin_menu:', 'cache_menu', TRUE);

  // Flush client-side cache hashes.
  cache_clear_all('*', 'cache_admin_menu', TRUE);
}