Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Drush clear plugins cache

No security coverage Maintenance fixes only 2 sites

This Drush command provides a way to clear Drupal's plugin manager cache. It allows you to clear the cache for a specific plugin type or for all plugin types at once.

After see this: DefaultPluginManager::clearCachedDefinitions

Don't resort to calling \Drupal::cache()->delete() and friends to make Drupal detect new or updated plugin definitions. Always use this method on the appropriate plugin type's plugin manager!

I build this drush command to allow clear plugin managers cache.

Help:

Clear plugin manager cached definitions.

Examples:
  drush_clear_plugins_cache:clear-cache plugin.manager.group_content_enabler Clear group_content_enabler plugin manager cache. 
  drush_clear_plugins_cache:clear-cache all                                  Clear all plugin manager cache.                   
  drush_clear_plugins_cache:clear-cache                                      Clear all plugin manager cache.                   

Arguments:
  [pluginType] The plugin manager service name. Default 'all'. 

Aliases: pmcc
Drupal 8–10 · not 11

Ask your assistant about Drush clear plugins cache

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • devel Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Nov 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.1 Stable 8–10 Nov 22, 2023