Browse Source

Merge pull request #7381 from nocodb/nc-fix/avoid-redis-flush

fix: avoid flushing redis when cloud init
pull/7384/head
Mert E 10 months ago committed by GitHub
parent
commit
ac5d39aced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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