You are here

function metatag_cache_set in Metatag 7

Wrapper for cache_set.

See also

cache_set()

5 calls to metatag_cache_set()
metatag_config_instance_info in ./metatag.module
Returns Instance info if exists otherwise return FALSE.
metatag_config_load_with_defaults in ./metatag.module
Load a metatag configuration record with all the defaults merged in.
metatag_generate_entity_metatags in ./metatag.module
Generate the metatags for a given entity.
metatag_get_info in ./metatag.module
Get the meta tag information array of a meta tag.
metatag_page_build in ./metatag.module
Implements hook_page_build().

File

./metatag.module, line 2841
Primary hook implementations for Metatag.

Code

function metatag_cache_set($cid, $data) {

  // By default the cached data will not expire.
  $expire = CACHE_PERMANENT;

  // Triggers hook_metatag_cache_set_expire_alter().
  drupal_alter("metatag_cache_set_expire", $expire, $cid, $data);
  return cache_set($cid, $data, 'cache_metatag', $expire);
}