I'm having an issue with the KV cache. Up until recently (sometime after mid-February?), I was able
I'm having an issue with the KV cache. Up until recently (sometime after mid-February?), I was able to use a very long TTL when retrieving values from the KV. Then, whenever I made an update, my Workers would use a TTL of 60 to retrieve the new entry, as described by the documentation:
Now however, even with a TTL of 60,
What’s odd is that if I repeatedly refresh the KV Pairs page on the Dashboard, it will randomly show me either the new values, or the old ones.
Any help would be appreciated. Thank you.
The effective cacheTtl of an already cached item can be reduced by getting it again with a lower cacheTtl. For example, if you did NAMESPACE.get(key, {cacheTtl: 86400}) but later realized that caching for 24 hours was too long, you could NAMESPACE.get(key) and it would check for newer data to respect the provided cacheTtl, which defaults to 60 seconds.
Now however, even with a TTL of 60,
get keeps returning the old entries, which have a very long TTL.What’s odd is that if I repeatedly refresh the KV Pairs page on the Dashboard, it will randomly show me either the new values, or the old ones.
Any help would be appreciated. Thank you.





