We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b699ca commit 2709bebCopy full SHA for 2709beb
server/services/core/group/group.service.ts
@@ -50,6 +50,10 @@ class GroupService extends TcService {
50
params: {
51
groupId: 'string',
52
},
53
+ cache: {
54
+ keys: ['groupId'],
55
+ ttl: 60 * 60, // 1 hour
56
+ },
57
});
58
this.registerAction('getGroupInfo', this.getGroupInfo, {
59
@@ -1204,6 +1208,7 @@ class GroupService extends TcService {
1204
1208
* @param groupId 群组id
1205
1209
*/
1206
1210
private cleanGroupInfoCache(groupId: string) {
1211
+ this.cleanActionCache('getGroupBasicInfo', [groupId]);
1207
1212
this.cleanActionCache('getGroupInfo', [groupId]);
1213
}
1214
0 commit comments