HananoshikaYomaru
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time
ok thx. Thx for your prompt response
24 replies
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time
but if I use Convex, I am not sure how this will be handled
24 replies
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time
normally if I create my own API, I have control over the cache-control
24 replies
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time
or do I misunderstand something?
24 replies
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time
yes, I plan to use cron job to do it every hour. But within this hour, I want my data to be cached so that it is not taken from the database everytime and use the bandwidth
24 replies
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time
let's say myQuery will return a data, and this data will not be changed for an hour. If I call myQuery again within this hour, will it hit the cache and does that count as bandwidth?
24 replies
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time
I don't think it is needed right?
24 replies
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time
but do I have to return this Date.now() in the api?
24 replies
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time
I cannot find any example
24 replies
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time

24 replies
CCConvex Community
•Created by HananoshikaYomaru on 1/31/2024 in #general
Caching when relying on time
can you show me a snippet of what the code looks like? I don't quite understand where that
Date.now()
appear in the api call24 replies