Ploi API
Ploi API

Disable OPcache

This will disable OPcache on your server.

DELETE api/servers/{server}/disable-opcache

Example request:

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

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "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"
    }
}