Skip to main content

Devbit

Clear plugin manager cache

You want to clear a specific plugin cache.
\Drupal::service('plugin_id.manager')->clearCachedDefinitions();
// Clear entity_type plugin cache.
\Drupal::entityTypeManager()->clearCachedDefinitions();

Issue:

You want to clear a specific plugin cache.

Solution:

Use the snippet provided.

Profilfoto Pascal

Pascal Crott

Lead Frontend Developer / Solution Architect / CTO / Stellv. Vorsitzender Drupal e.V.

Ihre Drupal-Website zukunftssicher machen

Wir prüfen Ihr System und zeigen, was Sie für AI, Wartung und Upgrades brauchen.