function panels_edit_cache_clear in Panels 7.3
Same name and namespace in other branches
- 6.3 panels.module \panels_edit_cache_clear()
Panels Editor Cache Clear.
Method to allow modules to provide their own mechanism to clear the cache used in the display editor.
2 calls to panels_edit_cache_clear()
- panels_renderer_ipe::ajax_save_form in panels_ipe/
plugins/ display_renderers/ panels_renderer_ipe.class.php - AJAX entry point to create the controller form for an IPE.
- panels_renderer_ipe::ajax_unlock_ipe in panels_ipe/
plugins/ display_renderers/ panels_renderer_ipe.class.php - AJAX callback to unlock the IPE.
File
- ./
panels.module, line 1765 - Core functionality for the Panels engine.
Code
function panels_edit_cache_clear($cache) {
$cache_key = $cache->display->cache_key;
if (strpos($cache_key, ':') !== FALSE) {
list($module, $argument) = explode(':', $cache_key, 2);
if (function_exists($module . '_panels_cache_clear')) {
return module_invoke($module, 'panels_cache_clear', $argument, $cache);
}
}
// Fall back to our normal method.
return panels_cache_clear('display', $cache_key);
}