Skip to content

CacheCommands

Drush commands for clearing caches.


  • Full name: \Drupal\helper\Drush\Commands\CacheCommands
  • Parent class: DrushCommands
  • This class implements: SiteAliasManagerAwareInterface

Properties

cacheBootstrap

protected \Drupal\Core\Cache\CacheBackendInterface $cacheBootstrap

Methods

__construct

public __construct(\Drupal\Core\Cache\CacheBackendInterface $cacheBootstrap): mixed

Parameters:

Parameter Type Description
$cacheBootstrap \Drupal\Core\Cache\CacheBackendInterface

alterCacheTypes

Add additional options to the drush cache:clear command.

public alterCacheTypes(array& $types, mixed $include_bootstrapped_types): mixed

Parameters:

Parameter Type Description
$types array
$include_bootstrapped_types mixed

clearLibraries

Clears the libraries (and CSS/JS) cache.

public clearLibraries(): mixed

clearBootstrap

Clears the bootstrap cache.

public clearBootstrap(): mixed