Caching or not caching data

I am unsure about the Data Caching on Server Connect, can someone clarify for me please.

I know that if I wanted to cache the results of an API query and restrict that call to no more than once an hour, then I would set the “Cache for” to '3600'.

But what if I want to ensure a fresh call for any Server Connect element each time the page is opened and not cache the results at all, should I be using this Data Caching and setting the “Cache for” to '0'.

image

Just don't use the cache data then.

If you don't want to call the server action every time the page is loaded, then use the cache option and set expiration time. This is useful if you are using data that doesn't change that often.

1 Like

This is a valuable feature I didn't realize exists. I can use that! Thanks!

2 Likes

Hi @Teodor, how to force update the data caching by some action like button on client for example? this is possible? tks!!

Check the following checkbox when calling the server action: