function panelizer_context_cache_set in Panelizer 6
Same name and namespace in other branches
- 7.3 panelizer.module \panelizer_context_cache_set()
- 7 panelizer.module \panelizer_context_cache_set()
- 7.2 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
$type: Can be something like 'node' or 'user' or 'default'.
$key: Either the node type or the nid.
$object: The cached object.
File
- ./
panelizer.module, line 556 - panelizer.module
Code
function panelizer_context_cache_set($type, $key, $object) {
ctools_include('object-cache');
ctools_object_cache_set('panelizer_context_cache', $type . ':' . $key, $object);
}