You are here

public static function FileCache::reset in Drupal 9

Same name and namespace in other branches
  1. 8 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 = [];
}