Browse Source

fix: avoid flushing redis when cloud init

pull/7381/head
Pranav C 10 months ago
parent
commit
20f7d37332
  1. 2
      packages/nocodb/src/cache/RedisCacheMgr.ts

2
packages/nocodb/src/cache/RedisCacheMgr.ts vendored

@ -14,7 +14,7 @@ export default class RedisCacheMgr extends CacheMgr {
this.client = new Redis(config);
// avoid flushing db in worker container
if (process.env.NC_WORKER_CONTAINER !== 'true') {
if (process.env.NC_WORKER_CONTAINER !== 'true' && process.env.NC_CLOUD !== 'true') {
// flush the existing db with selected key (Default: 0)
this.client.flushdb();
}

Loading…
Cancel
Save