Manual Purging Cache with Clickio CDN
Clickio CDN is designed to intelligently cache your content. In most cases, manual control is not required. However, you can always purge cache using the methods described below.
1. GET-parameter
To flush the cache of a single page, add the parameter ?lx_force_nocache=1
to the URL.
Example: https://domain.com/category/page15?lx_force_nocache=1
2. Clickio CDN Purge API
curl -X POST https://all.stage.clickio.com/clickioUtils/clearUrlSyncBatch/ \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer %secret_token%' \
-d '[
{
"daemon": "Master",
"domain": "domain.com",
"url": "/path/to/page/",
"desktop": 1,
"mobile": 1
},
{
"daemon": "Master",
"domain": "domain.com",
"url": "/path/to/second/page/",
"desktop": 1,
"mobile": 1
}
]'
- Get "secret_token" from your Clickio account manager,
- Replace "domain.com" with your domain name,
- Replace "/path/to/page/" with a page path,
- Multiple pages can be purged at once.
3. Clickio Platform - Cache
There is a way to purge Clickio CDN cache for specific URLs or by URL mask using the interface of Clickio Platform.
3.1. Log in to the Clickio Platform
3.2. Click the Prism in the left sidebar
3.3. Select domain and go to the settings
3.4. Use the Cache section in the General tab or CDN & Cache tab, to purge cache. See detailed instructions here