Skip to content

Commit ee4434f

Browse files
committed
set default cacheMode = 'stale-if-slow' in normalize()
1 parent eddaa81 commit ee4434f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/cubejs-api-gateway/src/query.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ const normalizeQuery = (query, persistent) => {
340340
// Convert deprecated renewQuery option to new cache mode
341341
if (query.renewQuery && !query.cache) {
342342
cacheMode = 'must-revalidate';
343+
} else if (!query.renewQuery && !query.cache) {
344+
cacheMode = 'stale-if-slow';
343345
}
344346

345347
return {

0 commit comments

Comments
 (0)