function panels_content_cache_clear_cache in Panels Content Cache 7
Same name and namespace in other branches
- 6 plugins/cache/content.inc \panels_content_cache_clear_cache()
Clear cached content.
Cache clears are always for an entire display, regardless of arguments.
Have not altered this function to take into account pane IDs (so we can clear individual panes) because all the other panels caching plugins I looked at did not do this either, so have left this for now as it requires further investigation.
1 call to panels_content_cache_clear_cache()
- panels_content_cache_node_clear_cache in ./
panels_content_cache.module - This function is called from hook_node_*() and invalidates the panel cache when a node is updated and it matches the criteria chosen in the caching of any panels.
1 string reference to 'panels_content_cache_clear_cache'
- content.inc in plugins/
cache/ content.inc - Provides a content-based caching option for panel panes.
File
- plugins/
cache/ content.inc, line 57 - Provides a content-based caching option for panel panes.
Code
function panels_content_cache_clear_cache($display) {
$cid = panels_content_cache_get_base_cid($display);
cache_clear_all(implode(':', $cid), 'cache_panels', TRUE);
}