Browse Source

fix(nc-gui): Fixed issue with single query cache not getting cleared on column update actions

pull/6605/head
Muhammed Mustafa 1 year ago
parent
commit
e3857cf2de
  1. 7
      packages/nocodb/src/models/Column.ts

7
packages/nocodb/src/models/Column.ts

@ -191,6 +191,8 @@ export default class Column<T = any> implements ColumnType {
ncMeta, ncMeta,
); );
await NocoCache.delAll(CacheScope.SINGLE_QUERY, `${column.fk_model_id}:*`);
return col; return col;
} }
@ -402,6 +404,8 @@ export default class Column<T = any> implements ColumnType {
} }
break;*/ break;*/
} }
await NocoCache.delAll(CacheScope.SINGLE_QUERY, `${column.fk_model_id}:*`);
} }
public async getColOptions<U = T>(ncMeta = Noco.ncMeta): Promise<U> { public async getColOptions<U = T>(ncMeta = Noco.ncMeta): Promise<U> {
@ -1159,6 +1163,9 @@ export default class Column<T = any> implements ColumnType {
}, },
colId, colId,
); );
const column = await Column.get({ colId }, ncMeta);
await NocoCache.delAll(CacheScope.SINGLE_QUERY, `${column.fk_model_id}:*`);
} }
public getValidators(): any { public getValidators(): any {

Loading…
Cancel
Save