diff --git a/packages/nocodb/src/cache/RedisCacheMgr.ts b/packages/nocodb/src/cache/RedisCacheMgr.ts index b1a3d3450a..2e063057db 100644 --- a/packages/nocodb/src/cache/RedisCacheMgr.ts +++ b/packages/nocodb/src/cache/RedisCacheMgr.ts @@ -12,7 +12,7 @@ export default class RedisCacheMgr extends CacheMgr { // avoid flushing db in worker container if ( 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) this.client.flushdb();