Skip to content

Commit

Permalink
fix: table list cache issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavxc committed Mar 1, 2024
1 parent f166975 commit e84ad14
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/nocodb/src/models/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,16 @@ export default class Model implements TableType {
model.meta = parseMetaProp(model);
}

await NocoCache.setList(
CacheScope.MODEL,
[base_id, source_id],
modelList,
);

await NocoCache.setList(CacheScope.MODEL, [base_id], modelList);
// set cache based on source_id presence
if (source_id) {
await NocoCache.setList(
CacheScope.MODEL,
[base_id, source_id],
modelList,
);
} else {
await NocoCache.setList(CacheScope.MODEL, [base_id], modelList);
}
}
modelList.sort(
(a, b) =>
Expand Down

1 comment on commit e84ad14

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR changes have been deployed. Please run the following command to verify:

docker run -d -p 8888:8080 nocodb/nocodb-timely:0.204.2-pr-7772-20240301-1527

Please sign in to comment.