Skip to content

Commit

Permalink
chore: cache init (#8697)
Browse files Browse the repository at this point in the history
Signed-off-by: mertmit <mertmit99@gmail.com>
  • Loading branch information
mertmit committed Jun 12, 2024
1 parent e3aeae4 commit 3aa80ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nocodb/src/cache/RedisCacheMgr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export default class RedisCacheMgr extends CacheMgr {
// avoid flushing db in worker container
if (
process.env.NC_WORKER_CONTAINER !== 'true' &&
(process.env.NC_FLUSH_CACHE === 'true' || process.env.NC_CLOUD !== 'true')
(process.env.NC_FLUSH_CACHE === 'true' ||
process.env.NC_CLOUD !== 'true') &&
process.env.NC_KEEP_CACHE !== 'true'
) {
// flush the existing db with selected key (Default: 0)
this.client.flushdb();
Expand Down

0 comments on commit 3aa80ff

Please sign in to comment.