How to cache the API response to prevent calling the API multiple times ?
Question

There is one API whose data we need to cache in order to prevent API calling multiple times. For this I also tried the cache in minutes property of API server action but when I checked the integration logs the API is getting called randomly without the data being cached. 

Help to provide solution for the API data caching.

Hi Siddharth,

Create a server action and set cache in minutes property as per below screens. Then call your api in this server action. Use this server actions in your screen actions. If your input parameters are changed then it will call API.



Thanks

Vinod

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.