function panels_simple_cache_clear_cache in Panels 6.2
Same name and namespace in other branches
- 5.2 panels_simple_cache/panels_simple_cache.module \panels_simple_cache_clear_cache()
- 6.3 plugins/cache/simple.inc \panels_simple_cache_clear_cache()
- 7.3 plugins/cache/simple.inc \panels_simple_cache_clear_cache()
Clear cached content.
Cache clears are always for an entire display, regardless of arguments.
1 string reference to 'panels_simple_cache_clear_cache'
- panels_simple_cache_panels_cache in panels_simple_cache/
panels_simple_cache.module - Implementation of hook_panels_cache()
File
- panels_simple_cache/
panels_simple_cache.module, line 89 - panels_simple_cache.module
Code
function panels_simple_cache_clear_cache($display) {
$cid = 'panels_simple_cache';
// This is used in case this is an in-code display, which means did will be something like 'new-1'.
if (isset($display->owner) && isset($display->owner->id)) {
$cid .= ':' . $display->owner->id;
}
$cid .= ':' . $display->did;
cache_clear_all($cid, 'cache', TRUE);
}