Skip to content

Commit aea2daf

Browse files
committed
fix: Do not use in memory cache for more than 5 minutes to avoid any long term discrepancies with upstream cache
1 parent fe364e6 commit aea2daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-query-orchestrator/src/orchestrator/QueryCache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ export class QueryCache {
912912
// Most likely it'll cause race condition of refreshing data with different refreshKey values.
913913
renewedAgo + inMemoryCacheDisablePeriod > renewalThreshold * 1000 ||
914914
inMemoryValue.renewalKey !== renewalKey
915-
) || renewedAgo > expiration * 1000
915+
) || renewedAgo > expiration * 1000 || renewedAgo > inMemoryCacheDisablePeriod
916916
) {
917917
this.memoryCache.del(redisKey);
918918
} else {

0 commit comments

Comments
 (0)