function CacheBackendDecorator::invalidateAll
Same name and namespace in other branches
- 11.x core/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.php \Drupal\performance_test\Cache\CacheBackendDecorator::invalidateAll()
Marks all cache items as invalid.
Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE.
Overrides CacheBackendInterface::invalidateAll
File
-
core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php, line 150
Class
- CacheBackendDecorator
- Wraps an existing cache backend to track calls to the cache backend.
Namespace
Drupal\performance_test\CacheCode
public function invalidateAll() {
$start = microtime(TRUE);
$this->cacheBackend
->invalidateAll();
$stop = microtime(TRUE);
$this->logCacheOperation([], $start, $stop, 'invalidateAll');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.