Browse Source

chore: NC_FLUSH_CACHE env variable

pull/7621/head
mertmit 11 months ago committed by starbirdtech383
parent
commit
b4fc1b2731
  1. 2
      packages/nocodb/src/cache/RedisCacheMgr.ts

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

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

Loading…
Cancel
Save