v51

OpenAPI 3.0.0raw.githubusercontent.com2026-08-01267339950.6 KB
Hosting: Cache

Toggle website cache

Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead.

Does nothing if caching is already in the requested state.

patch/api/hosting/v1/accounts/{username}/websites/{domain}/cache/toggle

Path parameters

usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld

Domain name

Request body

enabledboolean required

Turn server-side caching on (true) or off (false) for the website.

Example request

{
  "enabled": true
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}