You are here

function panelizer_context_cache_set in Panelizer 7.2

Same name and namespace in other branches
  1. 6 panelizer.module \panelizer_context_cache_set()
  2. 7.3 panelizer.module \panelizer_context_cache_set()
  3. 7 panelizer.module \panelizer_context_cache_set()

Store the panelizer object in the object cache.

CTools clumsy context editing system requires caching. This lets us do it reasonably.

Parameters

$entity_type: Can be something like 'node' or 'user' or 'default'.

$key: Either the node type or the nid.

$object: The cached object.

1 string reference to 'panelizer_context_cache_set'
panelizer_context.inc in plugins/cache/panelizer_context.inc

File

./panelizer.module, line 810
The Panelizer module attaches panels to entities, providing default panels and allowing each panel to be configured independently by privileged users.

Code

function panelizer_context_cache_set($entity_type, $key, $object) {
  ctools_include('object-cache');
  ctools_object_cache_set('panelizer_context_cache', $entity_type . ':' . $key, $object);
}