Skip to content

Commit 0211cbc

Browse files
author
Ihar
committed
fix:add additional invalidation for retire pools
1 parent 358609e commit 0211cbc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ export class ContractsApi {
405405
const invalidedCacheTags = [
406406
`${PREFIXES.CONTRACTS}wipe/requests`,
407407
`${PREFIXES.CONTRACTS}retire/requests`,
408+
`${PREFIXES.CONTRACTS}retire/pools`,
408409
];
409410
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
410411

@@ -455,6 +456,7 @@ export class ContractsApi {
455456
const invalidedCacheTags = [
456457
`${PREFIXES.CONTRACTS}wipe/requests`,
457458
`${PREFIXES.CONTRACTS}retire/requests`,
459+
`${PREFIXES.CONTRACTS}retire/pools`,
458460
];
459461
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
460462

@@ -505,6 +507,7 @@ export class ContractsApi {
505507
const invalidedCacheTags = [
506508
`${PREFIXES.CONTRACTS}wipe/requests`,
507509
`${PREFIXES.CONTRACTS}retire/requests`,
510+
`${PREFIXES.CONTRACTS}retire/pools`,
508511
];
509512
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
510513

@@ -563,6 +566,7 @@ export class ContractsApi {
563566
const invalidedCacheTags = [
564567
`${PREFIXES.CONTRACTS}wipe/requests`,
565568
`${PREFIXES.CONTRACTS}retire/requests`,
569+
`${PREFIXES.CONTRACTS}retire/pools`,
566570
];
567571
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
568572

@@ -617,6 +621,7 @@ export class ContractsApi {
617621
const invalidedCacheTags = [
618622
`${PREFIXES.CONTRACTS}wipe/requests`,
619623
`${PREFIXES.CONTRACTS}retire/requests`,
624+
`${PREFIXES.CONTRACTS}retire/pools`,
620625
];
621626
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
622627

@@ -675,6 +680,7 @@ export class ContractsApi {
675680
const invalidedCacheTags = [
676681
`${PREFIXES.CONTRACTS}wipe/requests`,
677682
`${PREFIXES.CONTRACTS}retire/requests`,
683+
`${PREFIXES.CONTRACTS}retire/pools`,
678684
];
679685
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
680686

@@ -733,6 +739,7 @@ export class ContractsApi {
733739
const invalidedCacheTags = [
734740
`${PREFIXES.CONTRACTS}wipe/requests`,
735741
`${PREFIXES.CONTRACTS}retire/requests`,
742+
`${PREFIXES.CONTRACTS}retire/pools`,
736743
];
737744
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
738745

@@ -791,6 +798,7 @@ export class ContractsApi {
791798
const invalidedCacheTags = [
792799
`${PREFIXES.CONTRACTS}wipe/requests`,
793800
`${PREFIXES.CONTRACTS}retire/requests`,
801+
`${PREFIXES.CONTRACTS}retire/pools`,
794802
];
795803
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
796804

@@ -849,6 +857,7 @@ export class ContractsApi {
849857
const invalidedCacheTags = [
850858
`${PREFIXES.CONTRACTS}wipe/requests`,
851859
`${PREFIXES.CONTRACTS}retire/requests`,
860+
`${PREFIXES.CONTRACTS}retire/pools`,
852861
];
853862
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
854863

@@ -907,6 +916,7 @@ export class ContractsApi {
907916
const invalidedCacheTags = [
908917
`${PREFIXES.CONTRACTS}wipe/requests`,
909918
`${PREFIXES.CONTRACTS}retire/requests`,
919+
`${PREFIXES.CONTRACTS}retire/pools`,
910920
];
911921
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
912922

@@ -965,6 +975,7 @@ export class ContractsApi {
965975
const invalidedCacheTags = [
966976
`${PREFIXES.CONTRACTS}wipe/requests`,
967977
`${PREFIXES.CONTRACTS}retire/requests`,
978+
`${PREFIXES.CONTRACTS}retire/pools`,
968979
];
969980
await this.cacheService.invalidate(getCacheKey([req.url, ...invalidedCacheTags], user));
970981

0 commit comments

Comments
 (0)