function CacheCollector::reset
Resets the local cache.
Does not clear the persistent cache.
Overrides CacheCollectorInterface::reset
2 calls to CacheCollector::reset()
- CacheCollector::clear in core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php  - Clears the collected cache entry.
 - LibraryDiscoveryCollector::reset in core/
lib/ Drupal/ Core/ Asset/ LibraryDiscoveryCollector.php  - Resets the local cache.
 
1 method overrides CacheCollector::reset()
- LibraryDiscoveryCollector::reset in core/
lib/ Drupal/ Core/ Asset/ LibraryDiscoveryCollector.php  - Resets the local cache.
 
File
- 
              core/
lib/ Drupal/ Core/ Cache/ CacheCollector.php, line 315  
Class
- CacheCollector
 - Default implementation for CacheCollectorInterface.
 
Namespace
Drupal\Core\CacheCode
public function reset() {
  $this->storage = [];
  $this->keysToPersist = [];
  $this->keysToRemove = [];
  $this->cacheLoaded = FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.