function VariationCache::invalidate
Same name in other branches
- 11.x core/lib/Drupal/Core/Cache/VariationCache.php \Drupal\Core\Cache\VariationCache::invalidate()
Overrides VariationCacheInterface::invalidate
File
-
core/
lib/ Drupal/ Core/ Cache/ VariationCache.php, line 150
Class
- VariationCache
- Wraps a regular cache backend to make it support cache contexts.
Namespace
Drupal\Core\CacheCode
public function invalidate(array $keys, CacheableDependencyInterface $initial_cacheability) : void {
$chain = $this->getRedirectChain($keys, $initial_cacheability);
$this->cacheBackend
->invalidate(array_key_last($chain));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.