Enable OPcache

Enable OPcache on your server.


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

Enable OPcache

This endpoint enables OPcache on the specified server.

Request

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

Response

{
  "data": {
    "id": 1,
    "status": "active",
    "type": "server",
    "name": "silent-willow",
    "ip_address": "127.0.0.1",
    "internal_ip": null,
    "ssh_port": 22,
    "reboot_required": false,
    "php_version": 7.4,
    "mysql_version": 5.7,
    "sites_count": 1,
    "monitoring": false,
    "opcache": false,
    "installed_php_versions": [
      "7.4"
    ],
    "status_id": 2,
    "created_at": "2020-07-27 13:37:19"
  }
}