Refresh OPcache

Refresh the OPCache on this server.


POST/api/servers/{server}/refresh-opcache

Refresh OPcache

This endpoint refreshes the OPCache on the specified server.

Request

POST
/api/servers/{server}/refresh-opcache
curl -X POST "https://ploi.io/api/servers/{server}/refresh-opcache" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": {
    "id": 58,
    "name": "server-name",
    "ip_address": "127.0.0.1",
    "php_version": 7.2,
    "mysql_version": 5.7,
    "sites_count": 1,
    "status": "Server active",
    "created_at": "2018-09-07 16:08:34"
  }
}