CacheCollector::invalidateCache

protected CacheCollector::invalidateCache()

Invalidate the cache.

File

core/lib/Drupal/Core/Cache/CacheCollector.php, line 336

Class

CacheCollector
Default implementation for CacheCollectorInterface.

Namespace

Drupal\Core\Cache

Code

1
2
3
4
5
6
protected function invalidateCache() {
  // Invalidate the cache to make sure that other requests immediately see the
  // deletion before this request is terminated.
  $this->cache->invalidate($this->getCid());
  $this->cacheInvalidated = TRUE;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.