Drupal\helper\Commands\CacheCommands
Drush commands for clearing caches.
Implements:
Consolidation\Config\ConfigAwareInterface, Robo\Contract\OutputAwareInterface, Symfony\Component\Console\Input\InputAwareInterface, Consolidation\AnnotatedCommand\State\SavableState, Consolidation\AnnotatedCommand\Output\OutputAwareInterface, Consolidation\SiteProcess\ProcessManagerAwareInterface, Robo\Contract\ConfigAwareInterface, Psr\Log\LoggerAwareInterface, Robo\Contract\IOAwareInterface
Extend:
Drush\Commands\DrushCommands
Methods
| Name | Description |
|---|---|
| alterCacheTypes | Add additional options to the drush cache:clear command. |
| clearBootstrap | Clears the bootstrap cache. |
| clearLibraries | Clears the libraries (and CSS/JS) cache. |
Inherited methods
| Name | Description |
|---|---|
| __construct | - |
| configure | - |
| currentState | - |
| getConfig | Replaces same method in ConfigAwareTrait in order to provide a |
| DrushConfig as return type. Helps with IDE completion. | |
| getEditor | - |
| hasProcessManager | - |
| initHook | Configure Laravel prompts package. |
| logger | Returns a logger object. |
| parentGetConfig | Get the config management object. |
| preHook | Persist commandData for use in primary command callback. Used by 'topic' commands. |
| processManager | This method overrides the trait in order to provide a more specific return type. |
| programExists | - |
| restoreState | - |
| setConfig | Set the config management object. |
| setInput | - |
| setLogger | Sets a logger. |
| setOutput | - |
| setProcessManager | - |
| startBrowser | Starts a background browser/tab for the current site or a specified URL. |
CacheCommands::alterCacheTypes
Description
public alterCacheTypes (void)
Add additional options to the drush cache:clear command.
Parameters
This function has no parameters.
Return Values
void
CacheCommands::clearBootstrap
Description
public static clearBootstrap (void)
Clears the bootstrap cache.
Parameters
This function has no parameters.
Return Values
void
CacheCommands::clearLibraries
Description
public static clearLibraries (void)
Clears the libraries (and CSS/JS) cache.
Parameters
This function has no parameters.
Return Values
void