You are here

function cache_actions_rules_cache_get_cache in Cache Actions 6.2

Same name and namespace in other branches
  1. 7.2 plugins/cache/rules.inc \cache_actions_rules_cache_get_cache()
  2. 7 plugins/cache/rules.inc \cache_actions_rules_cache_get_cache()

Get cached content.

1 string reference to 'cache_actions_rules_cache_get_cache'
rules.inc in plugins/cache/rules.inc
Provides a simple time-based caching option for panel panes.

File

plugins/cache/rules.inc, line 27
Provides a simple time-based caching option for panel panes.

Code

function cache_actions_rules_cache_get_cache($conf, $display, $args, $contexts, $pane = NULL) {
  $cid = cache_actions_rules_cache_get_id($conf, $display, $args, $contexts, $pane);
  $cache = cache_get($cid, 'cache');
  if (!$cache) {
    return FALSE;
  }
  return $cache->data;
}