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