You are here

function oa_core_set_cache in Open Atrium Core 7.2

Helper function to set a value to the static and db cache

Parameters

$cid: the cache id (see oa_core_get_cache_id):

$value : the value to save in cache:

5 calls to oa_core_set_cache()
oa_core_get_groups_by_parent in includes/oa_core.util.inc
Get child Spaces or Groups.
oa_core_get_groups_by_user in includes/oa_core.util.inc
Get the group IDs of all the groups a user is an approved member of.
oa_core_get_groups_by_user_access in includes/oa_core.util.inc
Get the group IDs and Titles of all the groups a user is an approved member of.
oa_core_get_parents_with_titles in includes/oa_core.util.inc
Get parent Spaces and Groups.
oa_core_get_top_parents in includes/oa_core.util.inc
Get top-level spaces/groups (no parents of same bundle type)

File

includes/oa_core.cache.inc, line 33
Code for OpenAtrium caching helpers

Code

function oa_core_set_cache($name, $cid, $value) {
  $static_cache =& drupal_static($name);
  $static_cache[$cid] = $value;
  cache_set($cid, $value);
}