fkwdigital/SiteGround Cache Manager
Purge SiteGround caches via SSH+WP-CLI (shared hosting) or Site Tools API (agency).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| MODE | Operation mode: 'ssh' (default, shared hosting via SG Optimizer + WP-CLI) or 'api' (agency-tier Site Tools API) | no | ssh |
| CACHE_TYPE | Cache to purge: 'all' (default), 'dynamic' (NGINX/SG Optimizer), or 'memcached' (WP object cache) | no | all |
| SSH_PRIVATE_KEY | [ssh] Private key contents. Required when MODE=ssh. | no | — |
| SSH_PASSPHRASE | [ssh] Passphrase for the SSH private key (required by SiteGround for keys created in Site Tools) | no | — |
| KNOWN_HOSTS | [ssh] Contents of ~/.ssh/known_hosts for the remote server. Obtain via: ssh-keyscan -H -p 18765 your-host. Strongly recommended. | no | — |
| REMOTE_HOST | [ssh] SSH host (SiteGround server hostname or IP). Required when MODE=ssh. | no | — |
| REMOTE_USER | [ssh] SSH username (your SiteGround SSH user). Required when MODE=ssh. | no | — |
| REMOTE_PORT | [ssh] SSH port (SiteGround default is 18765) | — | 18765 |
| REMOTE_PATH | [ssh] Absolute path to the WordPress install on the server (e.g. /home/customer/www/example.com/public_html). Required when MODE=ssh. | no | — |
| SITEGROUND_API_TOKEN | [api] OAuth bearer token for the SiteGround Site Tools API. Required when MODE=api. | no | — |
| SITEGROUND_SITE_ID | [api] Site ID from Site Tools. Required when MODE=api. | no | — |
| SITEGROUND_API_BASE | [api] API base URL (override only if SiteGround changes endpoints) | no | https://api.siteground.com/v00 |
Outputs
no outputs