1. Home
  2. API
  3. Purge a Cache Domain

Purge a Cache Domain

Command line example for deleting matching content in the Accelerator cache (purge) . This is useful for deployment scripts, etc. You will be calling the snaptNginx.purgeCacheString method with the argument array of (string). The change takes immediate effect.

The XmlRpc URL for these requests is http://snapt/api/key/secret/snaptNginx/

Code Example

This uses the Zend XmlRpc client, with a custom function getClient as seen below —

Updated on February 25, 2019


Was this article helpful?

Related Articles