File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
packages/cloudflare/src/api/overrides/incremental-cache Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,16 @@ interface PutToCacheInput {
58
58
}
59
59
60
60
/**
61
- * Wrapper adding a regional cache on an `IncrementalCache` implementation
61
+ * Wrapper adding a regional cache on an `IncrementalCache` implementation.
62
+ *
63
+ * Using a the `RegionalCache` does not directly improves the performance much.
64
+ * However it allows bypassing the tag cache (see `bypassTagCacheOnCacheHit`) on hits.
65
+ * That's where bigger perf gain happens.
66
+ *
67
+ * We recommend using cache purge.
68
+ * When cache purge is not enabled, there is a possibility that the Cache API (local to a Data Center)
69
+ * is out of sync with the cache store (i.e. R2). That's why when cache purge is not enabled the Cache
70
+ * API is refreshed from the cache store on cache hits (for the long-lived mode).
62
71
*/
63
72
class RegionalCache implements IncrementalCache {
64
73
public name : string ;
You can’t perform that action at this time.
0 commit comments