protected function clearOpCacheTask($worker, AbstractAuth $auth, $remote)
    {
        $clearOpcache = 'vendor/bin/robo digipolis:clear-op-cache ' . $remote['opcache']['env'];
        if (isset($remote['opcache']['host'])) {
            $clearOpcache .= ' --host=' . $remote['opcache']['host'];
        }
        return $this->taskSsh($worker, $auth)
            ->remoteDirectory($remote['rootdir'], true)
            ->exec($clearOpcache);
    }
protected function clearOpCacheTask($worker, AbstractAuth $auth, $remote)
    {
        $clearOpcache = 'vendor/bin/robo digipolis:clear-op-cache ' . $remote['opcache']['env'];
        if (isset($remote['opcache']['host'])) {
            $clearOpcache .= ' --host=' . $remote['opcache']['host'];
        }
        return $this->taskSsh($worker, $auth)
            ->remoteDirectory($remote['rootdir'], true)
            ->exec($clearOpcache);
    }
protected function clearOpCacheTask ( $ worker , AbstractAuth $ auth , $ remote ) { $ clearOpcache = 'vendor/bin/robo digipolis:clear-op-cache ' . $ remote [ 'opcache' ] [ 'env' ] ; if ( isset ( $ remote [ 'opcache' ] [ 'host' ] ) ) { $ clearOpcache .= ' --host=' . $ remote [ 'opcache' ] [ 'host' ] ; } return $ this -> taskSsh ( $ worker , $ auth ) -> remoteDirectory ( $ remote [ 'rootdir' ] , true ) -> exec ( $ clearOpcache ) ; }
Clear OPcache on the server.

@param string $worker
The server to install the site on.
@param \DigipolisGent\Robo\Task\Deploy\Ssh\Auth\AbstractAuth $auth
The ssh authentication to connect to the server.
@param array $remote
The remote settings for this server.

@return \Robo\Contract\TaskInterface
The clear OPcache task.
Clear OPcache on the server .