You are here

public function CachePluginBase::cacheFlush in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::cacheFlush()
  2. 9 core/modules/views/src/Plugin/views/cache/CachePluginBase.php \Drupal\views\Plugin\views\cache\CachePluginBase::cacheFlush()

Clear out cached data for a view.

File

core/modules/views/src/Plugin/views/cache/CachePluginBase.php, line 162

Class

CachePluginBase
The base plugin to handle caching.

Namespace

Drupal\views\Plugin\views\cache

Code

public function cacheFlush() {
  Cache::invalidateTags($this->view->storage
    ->getCacheTagsToInvalidate());
}