CacheCollector::reset

public CacheCollector::reset()

Resets the local cache.

Does not clear the persistent cache.

Overrides CacheCollectorInterface::reset

File

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

Class

CacheCollector
Default implementation for CacheCollectorInterface.

Namespace

Drupal\Core\Cache

Code

1
2
3
4
5
6
public function reset() {
  $this->storage = array();
  $this->keysToPersist = array();
  $this->keysToRemove = array();
  $this->cacheLoaded = FALSE;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.