We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40b149e commit a330e39Copy full SHA for a330e39
src/Commands/core/CacheCommands.php
@@ -250,6 +250,7 @@ public function getTypes($include_bootstrapped_types = false)
250
'router' => [$this, 'clearRouter'],
251
'css-js' => [$this, 'clearCssJs'],
252
'render' => [$this, 'clearRender'],
253
+ 'plugin' => [$this, 'clearPlugin'],
254
];
255
}
256
@@ -297,6 +298,11 @@ public static function clearRender()
297
298
Cache::invalidateTags(['rendered']);
299
300
301
+ public static function clearPlugin()
302
+ {
303
+ \Drupal::getContainer()->get('plugin.cache_clearer')->clearCachedDefinitions();
304
+ }
305
+
306
/**
307
* Loads the Drupal autoloader and returns the instance.
308
*/
0 commit comments