Event Handlers use cache for requests

Hi,
hope you are doing well and staying healthy.

I have a post request inside my Event Handler and I am trying to find a way to cache it for a day, as data is being invalidated once a day and I have an API limit there as well.

Is there a way to do it with Backendless powers somehow? I am using JS and Backendless.Request.post internally.

I’ve found Cache section here, but I think it has maximum of one minute and for me it does not even work, I’ve set it for a 50 seconds just to test but it always call an external API.

Backendless.Request.post(url, body)
            .cacheTags(['tag'])
            .useCache(55 * 1000)

Is there a way to cache it for much longer?

Thanks a lot for your help,
best,

Nick.

Hello @nike-teo

You could set bigger TTL for this purpose, but it doesn’t change things much, because cached requests are alive so long as a process where runs.

As a workaround, I could offer manually manage cached data by writing in files.