function CacheBackendInterface::invalidateAll
Same name in other branches
- 9 core/lib/Drupal/Core/Cache/CacheBackendInterface.php \Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
- 8.9.x core/lib/Drupal/Core/Cache/CacheBackendInterface.php \Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
- 10 core/lib/Drupal/Core/Cache/CacheBackendInterface.php \Drupal\Core\Cache\CacheBackendInterface::invalidateAll()
Marks all cache items as invalid.
Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE.
Deprecated
in drupal:11.2.0 and is removed from drupal:12.0.0. Use CacheBackendInterface::deleteAll() or cache tag invalidation instead.
See also
https://www.drupal.org/node/3500622
8 methods override CacheBackendInterface::invalidateAll()
- ApcuBackend::invalidateAll in core/
lib/ Drupal/ Core/ Cache/ ApcuBackend.php - Marks all cache items as invalid.
- BackendChain::invalidateAll in core/
lib/ Drupal/ Core/ Cache/ BackendChain.php - Marks all cache items as invalid.
- CacheBackendDecorator::invalidateAll in core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php - Marks all cache items as invalid.
- ChainedFastBackend::invalidateAll in core/
lib/ Drupal/ Core/ Cache/ ChainedFastBackend.php - Marks all cache items as invalid.
- DatabaseBackend::invalidateAll in core/
lib/ Drupal/ Core/ Cache/ DatabaseBackend.php - Marks all cache items as invalid.
File
-
core/
lib/ Drupal/ Core/ Cache/ CacheBackendInterface.php, line 204
Class
- CacheBackendInterface
- Defines an interface for cache implementations.
Namespace
Drupal\Core\CacheCode
public function invalidateAll();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.