FlushCache.php in DRD Agent 4.0.x
Same filename and directory in other branches
Namespace
Drupal\drd_agent\Agent\ActionFile
src/Agent/Action/FlushCache.phpView source
<?php
namespace Drupal\drd_agent\Agent\Action;
/**
* Provides a 'FlushCache' code.
*/
class FlushCache extends Base {
/**
* {@inheritdoc}
*/
public function execute() {
drupal_flush_all_caches();
return [
'data' => 'cache flushed',
];
}
}
Classes
Name | Description |
---|---|
FlushCache | Provides a 'FlushCache' code. |