Enable FastCGI cache

Enables FastCGI cache for your site.


POST/api/servers/{server}/sites/{site}/fastcgi-cache/enable

Enable FastCGI cache

This endpoint enables FastCGI cache for your site, which can significantly improve site performance by caching dynamic content.

Request

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

Response

{
  "data": {
    "id": 1,
    "status": "active",
    "server_id": 1,
    "domain": "awesome.com",
    "deploy_script": false,
    "web_directory": "/public",
    "project_type": null,
    "project_root": "/",
    "last_deploy_at": null,
    "system_user": "ploi",
    "php_version": 7.4,
    "health_url": null,
    "notification_urls": {
      "slack": null,
      "discord": null,
      "webhook": null
    },
    "has_repository": false,
    "zero_downtime_deployment": false,
    "created_at": "2020-08-03 11:23:48"
  }
}