Clear website cache
hosting_clearWebsiteCacheV1Clears all server-side and CDN caches for a website to make content updates visible immediately. Optionally targets a subdirectory for WordPress installations.
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. |