Home > Back-end >  Refresh the cache of a VEEML dataview
Refresh the cache of a VEEML dataview

Time:03-24

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 :

  1. Open the workloads
  2. Open the right dataview
  3. 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 :

  1. On the portal, go in the Workloads
  2. Open the right dataview
  3. The dataview token is the last parameter of the url
  • Related