function CacheCollector::clear
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::clear()
- 10 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::clear()
- 11.x core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::clear()
Overrides CacheCollectorInterface::clear
1 call to CacheCollector::clear()
- AliasWhitelist::clear in core/
lib/ Drupal/ Core/ Path/ AliasWhitelist.php - Clears the collected cache entry.
1 method overrides CacheCollector::clear()
- AliasWhitelist::clear in core/
lib/ Drupal/ Core/ Path/ AliasWhitelist.php - Clears the collected cache entry.
File
-
core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php, line 313
Class
- CacheCollector
- Default implementation for CacheCollectorInterface.
Namespace
Drupal\Core\CacheCode
public function clear() {
$this->reset();
if ($this->tags) {
Cache::invalidateTags($this->tags);
}
else {
$this->cache
->delete($this->getCid());
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.