AnsweredAssumed Answered

How to disable cache in REST API time series (GetValues, GetInterpolatedValues)

Question asked by houskat on May 30, 2016
Latest reply on May 30, 2016 by gregor

I have CustomDataReference which works fine, but when called by PI Rest API, the values are cached in Rest API. If it is single value, the cache can be omited by specific header. But it doesnt work with time series.

It is needed, because user wants to change his hand written value and the CustomDataReference is needed to recompute the changed data to the user.

So typical use case is:

User - web applicationFlowRest API
store hand value 100 at specific time->stores the value to PI server
Get the single values for this time<->Provides the computed value from CustomDataReference. No-cache header provided.
Get the series into the chart<->Provides the computed values from CustomDataReference. No-cache header provided.
User want to change his decision and stores value 200 at the specified time->stores the value to PI server
Get the single values for this time<->Provides the computed value from CustomDataReference. No-cache header provided.
Get the series into the chart<->Cached values are sent to client. No-cache header provided, but ignored.

Outcomes