Browse Source

chore: cache init (#8697)

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/8706/head
Mert E 6 months ago committed by GitHub
parent
commit
3aa80ffdca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/nocodb/src/cache/RedisCacheMgr.ts

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

@ -12,7 +12,9 @@ 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_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) // flush the existing db with selected key (Default: 0)
this.client.flushdb(); this.client.flushdb();

Loading…
Cancel
Save