function cache_actions_plugin_cache_rules::cache_flush in Cache Actions 7
Same name and namespace in other branches
- 7.2 plugins/views/cache_actions_plugin_cache_rules.inc \cache_actions_plugin_cache_rules::cache_flush()
We override the default caching mechanism, since it nukes everything. We are just going to flush the actual display.
Overrides views_plugin_cache::cache_flush
File
- plugins/
views/ cache_actions_plugin_cache_rules.inc, line 35 - This file contains a cache that just implements the views cache plugin.
Class
- cache_actions_plugin_cache_rules
- Plugin that caches views infinitely. This is not really that useful unless you want rules to invalidate your cache.
Code
function cache_flush() {
cache_clear_all($this->view->name . ':' . $this->display->id, $this->table, TRUE);
}