You are here

function views_content_cache_and_or_key_get in Views content cache 6.2

Same name and namespace in other branches
  1. 7.3 views_content_cache.module \views_content_cache_and_or_key_get()

Determine how this cache segment should be combined with others.

Parameters

The cache segment, should be c1 or c2, etc.:

Return value

Either 'AND' or 'OR' depending on how this cache segment can be combined with the others.

1 call to views_content_cache_and_or_key_get()
views_content_cache_update_get in ./views_content_cache.module
Retrieve the latest update record for a given cache id.

File

./views_content_cache.module, line 222
Views content cache cache.

Code

function views_content_cache_and_or_key_get($cid) {
  $map = views_content_cache_id_schema();
  if ($key = array_search($cid, $map)) {
    $plugin = views_content_cache_get_plugin($key);
    return $plugin
      ->clause_mode();
  }
  return 'AND';
}