You are here

FlushCache.php in DRD Agent 4.0.x

Same filename and directory in other branches
  1. 8.3 src/Agent/Action/FlushCache.php

File

src/Agent/Action/FlushCache.php
View 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

Namesort descending Description
FlushCache Provides a 'FlushCache' code.