function panels_clear_cached_content in Panels 6.2
Same name and namespace in other branches
- 5.2 includes/plugins.inc \panels_clear_cached_content()
- 6.3 includes/plugins.inc \panels_clear_cached_content()
- 7.3 includes/plugins.inc \panels_clear_cached_content()
Clear all cached content for a display.
Related topics
1 call to panels_clear_cached_content()
- panels_save_display in ./
panels.module - Save a display object.
File
- includes/
plugins.inc, line 604 - plugins.inc
Code
function panels_clear_cached_content($display) {
// Figure out every method we might be using to cache content in this display:
$methods = array();
if (!empty($display->cache['method'])) {
$methods[$display->cache['method']] = TRUE;
}
foreach ($display->content as $pane) {
if (!empty($pane->cache['method'])) {
$methods[$pane->cache['method']] = TRUE;
}
}
foreach (array_keys($methods) as $method) {
$function = panels_plugin_get_function('cache', $method, 'cache clear');
if ($function) {
$function($display);
}
}
}