public function CacheCollector::reset in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::reset()
- 9 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\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 303
Class
- CacheCollector
- Default implementation for CacheCollectorInterface.
Namespace
Drupal\Core\CacheCode
public function reset() {
$this->storage = [];
$this->keysToPersist = [];
$this->keysToRemove = [];
$this->cacheLoaded = FALSE;
}