You are here

function panels_content_cache_get_base_cid in Panels Content Cache 7

Construct base cid for display.

2 calls to panels_content_cache_get_base_cid()
panels_content_cache_clear_cache in plugins/cache/content.inc
Clear cached content.
panels_content_cache_get_cid in plugins/cache/content.inc
Figure out a cache id for our cache based upon input and settings.

File

plugins/cache/content.inc, line 281
Provides a content-based caching option for panel panes.

Code

function panels_content_cache_get_base_cid($display) {
  $cid = array(
    'panels_content_cache',
  );

  // This is used in case this is an in-code display, which means did will be
  // something like 'new-1'.
  if (isset($display->owner) && isset($display->owner->id)) {
    $cid[] = 'owner_' . $display->owner->id;
  }
  if (isset($display->did)) {
    $cid[] = 'did_' . $display->did;
  }
  return $cid;
}