public function CacheCollector::reset in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 295 - Contains \Drupal\Core\Cache\CacheCollector.
Class
- CacheCollector
- Default implementation for CacheCollectorInterface.
Namespace
Drupal\Core\CacheCode
public function reset() {
$this->storage = array();
$this->keysToPersist = array();
$this->keysToRemove = array();
$this->cacheLoaded = FALSE;
}