140
Views
3
Comments
Solved
REST caching
Question
I have a screen that has 5 drop downs. they all get data from a REST API. For the Actions in the REST API i don't see an option to cache in minutes like there is for regular actions.
Do i have to create regular actions that wrap the REST API in order to cache the data from the REST API?
Or is there a better way?

Thank you.
2016-11-21 23-23-05
Gonçalo Borrêga
Solution

Yes, you'll have to wrap those REST APIs inside a User Action, that is cached and then called in the Preparation.
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
I assume you retrieve the data in the Preperation? If so, why would you need caching?
2016-03-09 17-21-39
Fabian

Maybe i misunderstand caching in outSystems.

I am assuming that when the users go to another screen and come back the data is in the cache and the REST API is not hit again. Why can we cache results of sql quereis in the preparation but not results of REST APIs?
2016-11-21 23-23-05
Gonçalo Borrêga
Solution

Yes, you'll have to wrap those REST APIs inside a User Action, that is cached and then called in the Preparation.
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.