function FileCache::reset

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/FileCache/FileCache.php \Drupal\Component\FileCache\FileCache::reset()
  2. 10 core/lib/Drupal/Component/FileCache/FileCache.php \Drupal\Component\FileCache\FileCache::reset()
  3. 11.x core/lib/Drupal/Component/FileCache/FileCache.php \Drupal\Component\FileCache\FileCache::reset()

Resets the static cache.

@todo Replace this once https://www.drupal.org/node/2260187 is in.

1 call to FileCache::reset()
KernelTestBase::tearDown in core/tests/Drupal/KernelTests/KernelTestBase.php

File

core/lib/Drupal/Component/FileCache/FileCache.php, line 156

Class

FileCache
Allows to cache data based on file modification dates.

Namespace

Drupal\Component\FileCache

Code

public static function reset() {
    static::$cached = [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.