Clearing the Cache of a Site Identity
We recommend that you leverage a URI template parser to manage URI templates but you can also use a simple search and replace for this as shown in the samples in this section. The samples below assume that you are authenticated.
The following code is written in PHP and assumes that the client already knows the Site ID and Site Identity ID where it intends to purge the cache:
- The client goes to the discovery page, finds the “cachepurge” resource URI, fills in the necessary IDs, makes a POST request to create a Cache Purge job, and prints the URL of the Cache Purge job resource on the screen.
<?php |