Skip to content

Commit b8d264e

Browse files
committed
remove ttl for now
1 parent d8d49d3 commit b8d264e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/cloudflare/src/api/overrides/incremental-cache/kv-incremental-cache.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,9 @@ class KVIncrementalCache implements IncrementalCache {
6666
// Note: `Date.now()` returns the time of the last IO rather than the actual time.
6767
// See https://developers.cloudflare.com/workers/reference/security-model/
6868
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-
}
69+
})
70+
// TODO: Figure out how to best leverage KV's TTL.
71+
// NOTE: Ideally, the cache should operate in an SWR-like manner.
7672
);
7773
} catch (e) {
7874
error("Failed to set to cache", e);

0 commit comments

Comments
 (0)