Hello,
In cloud. I have a query that sets a cache TTL of 15s. But the cache is valid for much longer than those 15s. There is some hidden logic that I cannot figure out.
I have added some debug text to the app to see, and look:
Those values are printed with:
**TTL** {{ GetChunksAnalytics.cacheKeyTtl}}
**Received** {{ new Date(GetChunksAnalytics.lastReceivedFromResourceAt) }}
**Expiration:** {{ new Date(GetChunksAnalytics.lastReceivedFromResourceAt + (GetChunksAnalytics.cacheKeyTtl * 1000) )}}
**now** {{ new Date()}}
**Serve Cache** {{ GetChunksAnalytics.servedFromCache }}
Now
it is higher than the expiration, and still contents are being served from the cache. All as per the docs: Query caching | Retool Docs