Cache manipulation endpoint

PUT /api/v1/servers/:server_id/cache/flush?domain=:domain

Flush the positive, negative and packet cache for a given domain name.

Query Parameters:
 
  • server_id – The name of the server
  • domain – The domainname to flush for

New in version 4.1.3.

Query Parameters:
 
  • subtree – If set to true, also flush the whole subtree (default = false)

Example Response:

{
  "count": 10,
  "result": "Flushed cache."
}