yii\console\controllers\CacheController::actionIndex PHP Method

actionIndex() public method

Lists the caches that can be flushed.
public actionIndex ( )
    public function actionIndex()
    {
        $caches = $this->findCaches();
        if (!empty($caches)) {
            $this->notifyCachesCanBeFlushed($caches);
        } else {
            $this->notifyNoCachesFound();
        }
    }