You are here

function views_content_cache_key::content_key in Views content cache 7.3

Same name and namespace in other branches
  1. 6.2 plugins/base.inc \views_content_cache_key::content_key()

Builds an array of keys for the cache segment.

When an 'event' happens, e.g. a node is saved, views content cache will consult this plugin for the keys it wishes to store in its cache segments. Views content cache will then handle the storage.

Parameters

$object: The object that is being changed.

$object_type: The type of the object that is being changed.

Return value

Either a scalar value or an array of scalars. These should be the different keys that are effected by the event in this cache segment.

5 methods override views_content_cache_key::content_key()
views_content_cache_key_comment::content_key in plugins/views_content_cache/comment.inc
Builds an array of keys for the cache segment.
views_content_cache_key_node::content_key in plugins/views_content_cache/node.inc
Builds an array of keys for the cache segment.
views_content_cache_key_node_only::content_key in plugins/views_content_cache/node_only.inc
Builds an array of keys for the cache segment.
views_content_cache_key_og::content_key in plugins/views_content_cache/og.inc
Builds an array of keys for the cache segment.
views_content_cache_key_votingapi::content_key in plugins/views_content_cache/votingapi.inc
Builds an array of keys for the cache segment.

File

plugins/views_content_cache/base.inc, line 48
Provides the base Views content cache plugin.

Class

views_content_cache_key
Base class for the views content cache plugins.

Code

function content_key($object, $object_type) {
  return NULL;
}