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

public function reset() {
  $this->storage = array();
  $this->keysToPersist = array();
  $this->keysToRemove = array();
  $this->cacheLoaded = FALSE;
}
doc_Drupal
2016-10-29 08:49:23
Comments
Leave a Comment

Please login to continue.