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
Example request
{
"enabled": true
}Response
Success empty response
Example response
{
"message": "Request accepted"
}