function CachedDiscoveryInterface::useCaches
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface::useCaches()
- 10 core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface::useCaches()
- 11.x core/lib/Drupal/Component/Plugin/Discovery/CachedDiscoveryInterface.php \Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface::useCaches()
Disable the use of caches.
Can be used to ensure that uncached plugin definitions are returned, without invalidating all cached information.
This will also remove all local/static caches.
Parameters
bool $use_caches: FALSE to not use any caches.
1 method overrides CachedDiscoveryInterface::useCaches()
- DefaultPluginManager::useCaches in core/
lib/ Drupal/ Core/ Plugin/ DefaultPluginManager.php - Disable the use of caches.
File
-
core/
lib/ Drupal/ Component/ Plugin/ Discovery/ CachedDiscoveryInterface.php, line 30
Class
- CachedDiscoveryInterface
- Interface for discovery components holding a cache of plugin definitions.
Namespace
Drupal\Component\Plugin\DiscoveryCode
public function useCaches($use_caches = FALSE);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.