You are here

function _cache_actions_get_cache_key in Cache Actions 7

Same name and namespace in other branches
  1. 6.2 cache_actions.rules.inc \_cache_actions_get_cache_key()

Create a unique cache key in the same way as panels does for it's internal cache. This is a sure way to get unique cache ids for both in-code displays and database displays.

Parameters

$handler:

$display:

1 call to _cache_actions_get_cache_key()
_cache_actions_get_display_from_key in ./cache_actions.rules.inc
Get a display out of a key specified in the UI.

File

./cache_actions.rules.inc, line 488
This file provides the rules integration for this module.

Code

function _cache_actions_get_cache_key($handler, &$display) {
  $task_name = page_manager_make_task_name($handler->task, $handler->subtask);
  $display->cache_key = 'panel_context:' . $task_name . ':' . $handler->name;
}