You are here

function admin_menu_cache_set in Administration menu 8.3

Same name and namespace in other branches
  1. 5.3 admin_menu.module \admin_menu_cache_set()
  2. 6.3 admin_menu.module \admin_menu_cache_set()

Store a client-side cache hash in persistent cache.

This should only be used for client-side cache hashes. Use cache_menu for administration menu content.

Parameters

string $cid: The cache ID of the data to set.

string $data: The client-side cache hash.

array $tags: The cache tags for the data to set.

1 call to admin_menu_cache_set()
admin_menu_output in ./admin_menu.module
Build the administration menu output.

File

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

Code

function admin_menu_cache_set($cid, $data, array $tags) {
  if (variable_get('admin_menu_cache_client', TRUE)) {
    cache('admin_menu')
      ->set($cid, $data, CacheBackendInterface::CACHE_PERMANENT, $tags);
  }
}