You are here

function views_plugin_cache::cache_flush in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_cache.inc \views_plugin_cache::cache_flush()
  2. 7.3 plugins/views_plugin_cache.inc \views_plugin_cache::cache_flush()

Clear out cached data for a view.

We're just going to nuke anything related to the view, regardless of display, to be sure that we catch everything. Maybe that's a bad idea.

File

plugins/views_plugin_cache.inc, line 146

Class

views_plugin_cache
The base plugin to handle caching.

Code

function cache_flush() {
  cache_clear_all($this->view->name . ':', $this->table, TRUE);
}