hosting_clearWebsiteCacheV1
Clears all server-side and CDN cache for a website to make updated content visible immediately after major changes.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name | |
| username | Yes | username parameter | |
| directory | No | Directory of the website installation to clear, relative to the website root. Defaults to the website root. |