Is it possible to force a refresh of the cache for a Dataview in the VEEML platform ?
CodePudding user response:
The cache in VEEML is automaticaly refreshed based on changes in the data; it means that usualy you don’t have to refresh it manualy.
Nevertheless, to force a refresh for a dataview on your platform, you can follow the procedure below :
- Open the workloads
- Open the right dataview
- In the section Cache Status, click on the button Initialize the Cache
CodePudding user response:
You can force a refresh of the cache using the API /InitCache.
For instance, you can call this endpoint at the end of a workload process, to launch the refresh of the cache immediately.
$.ajax({
type: "POST",
url: "//the-url.ofyour.portal/initcache",
data: { "jsontring": JSON.stringify(_jsontring) },
success: function (data) {
console.log(data);
}
With _jsontring as :
{"Token": "xxx-xxx-xxx", -> authentication cookie
"DataViewToken": "yyy-yyy-yyy", -> Token of the dataview
}
You will find the token of a dataview by :
- On the portal, go in the Workloads
- Open the right dataview
- The dataview token is the last parameter of the url