Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Fabian
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.
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.
See solution in context
Kilian Hekhuis
MVP
I assume you retrieve the data in the Preperation? If so, why would you need caching?
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?
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 Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...