You are here

public function FlushCache::execute in DRD Agent 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Agent/Action/FlushCache.php \Drupal\drd_agent\Agent\Action\FlushCache::execute()

Execute an action.

Return value

mixed The response of the action as an array which will be encrypted before returned to DRD.

Overrides Base::execute

File

src/Agent/Action/FlushCache.php, line 13

Class

FlushCache
Provides a 'FlushCache' code.

Namespace

Drupal\drd_agent\Agent\Action

Code

public function execute() {
  drupal_flush_all_caches();
  return [
    'data' => 'cache flushed',
  ];
}