Hosting: Cache
Clear website cache
Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes.
Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
delete/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear
Path parameters
usernamestring required
Example:u123456789
domainstring required
Example:mydomain.tld
Domain name
Query parameters
directorystring
Example:blog
Directory of the website installation to clear, relative to the website root. Defaults to the website root.
Response
Success empty response
Example response
{
"message": "Request accepted"
}