function StaticFileCacheBackend::reset
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::reset()
- 10 core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::reset()
- 11.x core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::reset()
Allows tests to reset the static cache to avoid side effects.
File
-
core/
tests/ Drupal/ Tests/ Component/ FileCache/ StaticFileCacheBackend.php, line 67
Class
- StaticFileCacheBackend
- Allows to cache data based on file modification dates in a static cache.
Namespace
Drupal\Tests\Component\FileCacheCode
public static function reset() {
static::$cache = [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.