Skip to content

Commit 5c89a8e

Browse files
author
Ihar
committed
fix:add additional invalidation for wipe retire
1 parent ce67200 commit 5c89a8e

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

api-gateway/src/api/service/contract.ts

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,8 @@ export class ContractsApi {
10071007
const invalidedCacheTags = [
10081008
`${PREFIXES.CONTRACTS}retire/requests`,
10091009
`${PREFIXES.CONTRACTS}retire/pools`,
1010-
`${PREFIXES.CONTRACTS}retire`
1010+
`${PREFIXES.CONTRACTS}retire`,
1011+
`${PREFIXES.CONTRACTS}wipe/requests`,
10111012
];
10121013
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
10131014

@@ -1208,7 +1209,8 @@ export class ContractsApi {
12081209
const invalidedCacheTags = [
12091210
`${PREFIXES.CONTRACTS}retire/requests`,
12101211
`${PREFIXES.CONTRACTS}retire/pools`,
1211-
`${PREFIXES.CONTRACTS}retire`
1212+
`${PREFIXES.CONTRACTS}retire`,
1213+
`${PREFIXES.CONTRACTS}wipe/requests`,
12121214
];
12131215
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
12141216

@@ -1259,7 +1261,8 @@ export class ContractsApi {
12591261
const invalidedCacheTags = [
12601262
`${PREFIXES.CONTRACTS}retire/requests`,
12611263
`${PREFIXES.CONTRACTS}retire/pools`,
1262-
`${PREFIXES.CONTRACTS}retire`
1264+
`${PREFIXES.CONTRACTS}retire`,
1265+
`${PREFIXES.CONTRACTS}wipe/requests`,
12631266
];
12641267
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
12651268

@@ -1314,7 +1317,8 @@ export class ContractsApi {
13141317
const invalidedCacheTags = [
13151318
`${PREFIXES.CONTRACTS}retire/requests`,
13161319
`${PREFIXES.CONTRACTS}retire/pools`,
1317-
`${PREFIXES.CONTRACTS}retire`
1320+
`${PREFIXES.CONTRACTS}retire`,
1321+
`${PREFIXES.CONTRACTS}wipe/requests`,
13181322
];
13191323
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
13201324

@@ -1365,7 +1369,8 @@ export class ContractsApi {
13651369
const invalidedCacheTags = [
13661370
`${PREFIXES.CONTRACTS}retire/requests`,
13671371
`${PREFIXES.CONTRACTS}retire/pools`,
1368-
`${PREFIXES.CONTRACTS}retire`
1372+
`${PREFIXES.CONTRACTS}retire`,
1373+
`${PREFIXES.CONTRACTS}wipe/requests`,
13691374
];
13701375
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
13711376

@@ -1416,7 +1421,8 @@ export class ContractsApi {
14161421
const invalidedCacheTags = [
14171422
`${PREFIXES.CONTRACTS}retire/requests`,
14181423
`${PREFIXES.CONTRACTS}retire/pools`,
1419-
`${PREFIXES.CONTRACTS}retire`
1424+
`${PREFIXES.CONTRACTS}retire`,
1425+
`${PREFIXES.CONTRACTS}wipe/requests`,
14201426
];
14211427
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
14221428

@@ -1472,7 +1478,8 @@ export class ContractsApi {
14721478
const invalidedCacheTags = [
14731479
`${PREFIXES.CONTRACTS}retire/requests`,
14741480
`${PREFIXES.CONTRACTS}retire/pools`,
1475-
`${PREFIXES.CONTRACTS}retire`
1481+
`${PREFIXES.CONTRACTS}retire`,
1482+
`${PREFIXES.CONTRACTS}wipe/requests`,
14761483
];
14771484

14781485
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
@@ -1524,7 +1531,8 @@ export class ContractsApi {
15241531
const invalidedCacheTags = [
15251532
`${PREFIXES.CONTRACTS}retire/requests`,
15261533
`${PREFIXES.CONTRACTS}retire/pools`,
1527-
`${PREFIXES.CONTRACTS}retire`
1534+
`${PREFIXES.CONTRACTS}retire`,
1535+
`${PREFIXES.CONTRACTS}wipe/requests`,
15281536
];
15291537
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
15301538

@@ -1576,7 +1584,8 @@ export class ContractsApi {
15761584
const invalidedCacheTags = [
15771585
`${PREFIXES.CONTRACTS}retire/requests`,
15781586
`${PREFIXES.CONTRACTS}retire/pools`,
1579-
`${PREFIXES.CONTRACTS}retire`
1587+
`${PREFIXES.CONTRACTS}retire`,
1588+
`${PREFIXES.CONTRACTS}wipe/requests`,
15801589
];
15811590
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
15821591

@@ -1635,7 +1644,8 @@ export class ContractsApi {
16351644
const invalidedCacheTags = [
16361645
`${PREFIXES.CONTRACTS}retire/requests`,
16371646
`${PREFIXES.CONTRACTS}retire/pools`,
1638-
`${PREFIXES.CONTRACTS}retire`
1647+
`${PREFIXES.CONTRACTS}retire`,
1648+
`${PREFIXES.CONTRACTS}wipe/requests`,
16391649
];
16401650
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
16411651

@@ -1694,7 +1704,8 @@ export class ContractsApi {
16941704
const invalidedCacheTags = [
16951705
`${PREFIXES.CONTRACTS}retire/requests`,
16961706
`${PREFIXES.CONTRACTS}retire/pools`,
1697-
`${PREFIXES.CONTRACTS}retire`
1707+
`${PREFIXES.CONTRACTS}retire`,
1708+
`${PREFIXES.CONTRACTS}wipe/requests`,
16981709
];
16991710
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
17001711

0 commit comments

Comments
 (0)