Manually purging all caches or individual objects from Platform CDN
Important Note: These instructions clear content from Platform CDN only. To replace it with fresh content ensure that the content has also been purged from Acquia Varnish first.
First step: Retrieve the service_id and token
Run the following commands to SSH into your environment and use drush9 to retrieve the service_id and token:
ssh sitename.environment@sitenameenv.ssh.prod.acquia-sites.com
Your ssh url can be found in your Acquia Environment Information Section in the Cloud UI
drush9 --uri="https://www.example.com" state:get --format=json acquia_purge.platform_cdn
The output will be similar to the following:
{
"acquia_purge.platform_cdn": {
"vendor": "fastly",
"service_id": "1MFG0lmpFvMCoiziPbKLBB",
"token": "NFA6ZgZaQfC1u1117WJuu3cVbf0ChlDY"
}
}
Second step: Purge Platform CDN
Purge Platform CDN by running the following curl command with the token in the header and the service_id in the URL path as shown in the following example:
curl -X POST -H "Fastly-Key:<Platform CDN Token>" -H "Accept: application/json" https://api.fastly.com/service/<Platform CDN Service ID>/purge_all
For example:
curl -X POST -H "Fastly-Key:NFA6ZgZaQfC1u1117WJuu3cVbf0ChlDY" -H "Accept: application/json" https://api.fastly.com/service/1MFG0lmpFvMCoiziPbKLBB/purge_all
Before manually purging the Platform CDN cache, purge your Varnish cache to ensure cache consistency.
Further reading
https://support.acquia.com/hc/en-us/articles/360004352373-Varnish-Bypassing-the-cache