You are here

function esi_esi_cache_get_id in ESI: Edge Side Includes 6.2

Figure out an id for our cache based upon input and settings.

File

plugins/cache/esi.inc, line 79
ESI cache plugin. Substitutes esi-tags for a panel-pane's content.

Code

function esi_esi_cache_get_id($conf, $display, $args, $contexts, $pane) {

  // Build the cache-key using display ID, pane ID and pane context (if set).
  $key = array();
  $key[] = 'esi_esi_cache';
  $key[] = isset($display->id) ? $display->id : isset($display->css_id) ? $display->css_id : $display->did;
  $key[] = $pane->pid;
  if (!empty($pane->configuration['context']) && is_string($pane->configuration['context'])) {
    $key[] = $pane->configuration['context'];
  }
  return implode(':', $key);
}