cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How can we change the Cache Method programmatically?

cmelancon
7-Bedrock

How can we change the Cache Method programmatically?

I have a RemoteThing and I want to change the Cache Method to "Fetch from remote every read". How can I do that? I tried with AddPropertyDefinition and I assume that it is in the remoteBindingAspects that I have to put that, but I don't know what to put in the JSON. Is it

remoteBindings: {

  "cacheMethod": "Fetch from remote every read"

}

 

Any help is welcomed.

2 REPLIES 2


Hello @cmelancon,

 

Have you tried the following JSON format:

 

{
   "remoteBindings":{
      "cacheMethod":"Fetch from remote every read"
   }
}

Yes I tried and the cache method stays to "Cached for specific time".

Announcements


Top Tags