We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d49d3 commit b8d264eCopy full SHA for b8d264e
packages/cloudflare/src/api/overrides/incremental-cache/kv-incremental-cache.ts
@@ -66,13 +66,9 @@ class KVIncrementalCache implements IncrementalCache {
66
// Note: `Date.now()` returns the time of the last IO rather than the actual time.
67
// See https://developers.cloudflare.com/workers/reference/security-model/
68
lastModified: Date.now(),
69
- }),
70
- {
71
- // When available, we only cache for the max revalidate time
72
- ...(value.revalidate && {
73
- expirationTtl: value.revalidate,
74
75
- }
+ })
+ // TODO: Figure out how to best leverage KV's TTL.
+ // NOTE: Ideally, the cache should operate in an SWR-like manner.
76
);
77
} catch (e) {
78
error("Failed to set to cache", e);
0 commit comments