function panels_set_cached_content in Panels 6.2
Same name and namespace in other branches
- 5.2 includes/plugins.inc \panels_set_cached_content()
- 6.3 includes/plugins.inc \panels_set_cached_content()
- 7.3 includes/plugins.inc \panels_set_cached_content()
Store cached content for a given display and possibly pane.
Related topics
2 calls to panels_set_cached_content()
- panels_get_pane_content in includes/
plugins.inc - Get the content from a given pane.
- panels_render_layout in includes/
display-render.inc - Given a full layout structure and a content array, render a panel display. @render
File
- includes/
plugins.inc, line 586 - plugins.inc
Code
function panels_set_cached_content($cache, $display, $args, $context, $pane = NULL) {
$method = $pane ? $pane->cache['method'] : $display->cache['method'];
$function = panels_plugin_get_function('cache', $method, 'cache set');
if (!$function) {
return FALSE;
}
$conf = $pane ? $pane->cache['settings'] : $display->cache['settings'];
// snapshot it.
$cache
->cache();
return $function($conf, $cache, $display, $args, $context, $pane);
}