You are here

function views_plugin_cache_rules::cache_flush in Cache Actions 7

Same name and namespace in other branches
  1. 6.2 views_plugin_cache_rules.inc \views_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

./views_plugin_cache_rules.inc, line 31
This file contains a cache that just implements the views cache plugin.

Class

views_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);
}