You are here

function page_manager_set_page_cache in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 page_manager/page_manager.module \page_manager_set_page_cache()

Store changes to a task handler in the object cache.

13 calls to page_manager_set_page_cache()
page_manager_context_cache_set in page_manager/page_manager.module
page_manager_edit_page_finish in page_manager/page_manager.admin.inc
Callback generated when the an operation edit finished.
page_manager_edit_page_next in page_manager/page_manager.admin.inc
Callback generated when the 'next' button is clicked.
page_manager_enable_page in page_manager/page_manager.admin.inc
Menu callback to enable or disable a page
page_manager_page_add_subtask_finish in page_manager/plugins/tasks/page.admin.inc
Callback generated when the add page process is finished.

... See full list

File

page_manager/page_manager.module, line 272
The page manager module provides a UI and API to manage pages.

Code

function page_manager_set_page_cache($page) {
  if (!empty($page->locked)) {
    return;
  }
  if (empty($page->task_name)) {
    return;
  }
  ctools_include('object-cache');
  $page->changed = TRUE;
  $cache = ctools_object_cache_set('page_manager_page', $page->task_name, $page);
}