You are here

function hook_panels_cache_clear in Panels 7.3

Allow modules to provide their own caching mechanism for the display editor.

Parameters

string $argument: The second half of the cache key. Full key module:TASK_NAME:HANDLER_NAME passed part: TASK_NAME:HANDLER_NAME

object $cache: The cached display.

3 functions implement hook_panels_cache_clear()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

panels_mini_panels_cache_clear in panels_mini/panels_mini.module
Save all changes made to a display using the panels mini UI cache.
panels_node_panels_cache_clear in panels_node/panels_node.module
Clear all changes made to a display using the panels cache.
panel_context_panels_cache_clear in ./panels.module
Save all changes made to a display using the Page Manager page cache.
1 invocation of hook_panels_cache_clear()
panels_edit_cache_clear in ./panels.module
Panels Editor Cache Clear.

File

./panels.api.php, line 84
Hooks provided by Panels.

Code

function hook_panels_cache_clear($argument, $cache) {
  list($handler, $item) = _panels_mini_panels_cache_get($argument);
  $handler
    ->edit_cache_clear($item);
}