Skip to content

Commit 0eaf24b

Browse files
committed
remove query cache mode from normalize query
1 parent af5f77b commit 0eaf24b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -336,17 +336,8 @@ const normalizeQuery = (query, persistent) => {
336336
newLimit = query.limit;
337337
}
338338

339-
let cacheMode = query.cache;
340-
// Convert deprecated renewQuery option to new cache mode
341-
if (query.renewQuery && !query.cache) {
342-
cacheMode = 'must-revalidate';
343-
} else if (!query.renewQuery && !query.cache) {
344-
cacheMode = 'stale-if-slow';
345-
}
346-
347339
return {
348340
...query,
349-
...{ cache: cacheMode },
350341
...(query.order ? { order: normalizeQueryOrder(query.order) } : {}),
351342
limit: newLimit,
352343
timezone,

0 commit comments

Comments
 (0)