public function FlushCache::execute in DRD Agent 8.3
Same name and namespace in other branches
- 4.0.x 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\ActionCode
public function execute() {
drupal_flush_all_caches();
return [
'data' => 'cache flushed',
];
}