CacheCollector::clear

public CacheCollector::clear()

Clears the collected cache entry.

Overrides CacheCollectorInterface::clear

File

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

Class

CacheCollector
Default implementation for CacheCollectorInterface.

Namespace

Drupal\Core\Cache

Code

public function clear() {
  $this->reset();
  if ($this->tags) {
    Cache::invalidateTags($this->tags);
  }
  else {
    $this->cache->delete($this->getCid());
  }
}
doc_Drupal
2016-10-29 08:49:21
Comments
Leave a Comment

Please login to continue.