You are here

function context_admin_get_page_cache in Contextual Administration 6

Same name and namespace in other branches
  1. 7 context_admin.module \context_admin_get_page_cache()
10 calls to context_admin_get_page_cache()
context_admin_menu_context_edit_content in plugins/task_handlers/menu_context.inc
context_admin_menu_context_edit_content_settings in plugins/task_handlers/menu_context.inc
context_admin_menu_context_edit_content_settings_submit in plugins/task_handlers/menu_context.inc
Since each administration type provides its own settings, the submission function depends on the type's submission function to manage the object-cache for the individual items that are pertinant to it.
context_admin_menu_context_edit_content_submit in plugins/task_handlers/menu_context.inc
context_admin_noderef_create_node_content_form_submit in plugins/context_admin/noderef_create_node.inc

... See full list

File

./context_admin.module, line 31

Code

function context_admin_get_page_cache($name) {
  ctools_include('object-cache');
  $cache = ctools_object_cache_get('context_admin', $name);
  if (!$cache) {
    $cache = context_admin_load($name);
    $cache->locked = ctools_object_cache_test('context_admin', $name);
  }
  return $cache;
}