You are here

function cache_actions_rules_cache_set_cache in Cache Actions 7.2

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

Set cached content.

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

File

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

Code

function cache_actions_rules_cache_set_cache($conf, $content, $display, $args, $contexts, $pane = NULL) {
  if (!empty($conf['new'])) {
    $cid = cache_actions_rules_cache_get_id($conf, $display, $args, $contexts, $pane);
    cache_set($cid, $content);
  }
}