diff --git a/packages/nocodb/src/filters/global-exception/global-exception.filter.ts b/packages/nocodb/src/filters/global-exception/global-exception.filter.ts index 05c0fb46d0..cc63406adf 100644 --- a/packages/nocodb/src/filters/global-exception/global-exception.filter.ts +++ b/packages/nocodb/src/filters/global-exception/global-exception.filter.ts @@ -107,9 +107,13 @@ export class GlobalExceptionFilter implements ExceptionFilter { (data.timestamp + 300000 - Date.now()) / 1000, ); - NocoCache.setExpiring(cacheKey, data, ttlInSeconds).catch((err) => { - this.logger.error(err); - }); + if (ttlInSeconds <= 0) { + NocoCache.setExpiring(cacheKey, data, ttlInSeconds).catch( + (err) => { + this.logger.error(err); + }, + ); + } // log every 50th request in last 5 minutes after first if (data.count % 50 === 0) {