From 7e84ee39a127e3ed47215d303357e64738d97223 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 17 Apr 2024 11:07:21 +0000 Subject: [PATCH] fix: include count query with clear cache --- packages/nocodb/src/models/View.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nocodb/src/models/View.ts b/packages/nocodb/src/models/View.ts index fcd01e31e4..ab3453b1fe 100644 --- a/packages/nocodb/src/models/View.ts +++ b/packages/nocodb/src/models/View.ts @@ -1495,12 +1495,14 @@ export default class View implements ViewType { for (const view of viewsList) { deleteKeys.push( `${CacheScope.SINGLE_QUERY}:${modelId}:${view.id}:queries`, + `${CacheScope.SINGLE_QUERY}:${modelId}:${view.id}:count`, `${CacheScope.SINGLE_QUERY}:${modelId}:${view.id}:read`, ); } deleteKeys.push( `${CacheScope.SINGLE_QUERY}:${modelId}:default:queries`, + `${CacheScope.SINGLE_QUERY}:${modelId}:default:count`, `${CacheScope.SINGLE_QUERY}:${modelId}:default:read`, );