Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CachedDiscoveryInterface.php

function 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.

2 methods override CachedDiscoveryInterface::useCaches()
DefaultPluginManager::useCaches in core/lib/Drupal/Core/Plugin/DefaultPluginManager.php
Disable the use of caches.
DerivativeDiscoveryDecorator::useCaches in core/lib/Drupal/Component/Plugin/Discovery/DerivativeDiscoveryDecorator.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\Discovery

Code

public function useCaches($use_caches = FALSE);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal