function CachePluginBase::cache_flush in Views (for Drupal 7) 8.3
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
- lib/
Drupal/ views/ Plugin/ views/ cache/ CachePluginBase.php, line 198 - Definition of Drupal\views\Plugin\views\cache\CachePluginBase.
Class
- CachePluginBase
- The base plugin to handle caching.
Namespace
Drupal\views\Plugin\views\cacheCode
function cache_flush() {
cache($this->table)
->invalidateTags(array(
$this->view->storage->name => TRUE,
));
}