delete https://api.wp.pro/v1/site//cache/
Allows you to purge sites cache by scope (for instance opcache, object, database, cdn or all)
Response
Allows you to purge sites cache by scope (for instance opcache, object, database, cdn or all)
xxxxxxxxxx
import wppro from '@api/wppro';
wppro.siteCachePurgeByScope({site_id: 'site_id', scope: 'all'})
.then(({ data }) => console.log(data))
.catch(err => console.error(err));
xxxxxxxxxx
{
"success": true,
"message": "string"
}