function panels_simple_cache_clear_cache in Panels 6.3
Same name and namespace in other branches
- 5.2 panels_simple_cache/panels_simple_cache.module \panels_simple_cache_clear_cache()
- 6.2 panels_simple_cache/panels_simple_cache.module \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'
- simple.inc in plugins/
cache/ simple.inc - Provides a simple time-based caching option for panel panes.
File
- plugins/
cache/ simple.inc, line 53 - Provides a simple time-based caching option for panel panes.
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_panels', TRUE);
}