After you finish setting up the primary and secondary data centers, clear the caches in the secondary data center. This is in preparation for a failover. When you fail over to the secondary data center, caches in the secondary data center should be empty. Another way to clear cache is to reboot the virtual appliances.

Procedure

Run the following REST API from a REST client such as Postman.

PATH: /SAAS/jersey/manager/api/removeAllCaches

Method: POST

Add Headers:

Authorization: HZN <cookie_value>
Accept: application/vnd.vmware.horizon.manager.cache.removal.response+json
Content-type: application/vnd.vmware.horizon.manager.cache.removal.request+json’

Add in Body (raw) section:

{
"cacheNames”:[ 
]
}

Note:

Empty cacheNames indicates remove all caches.