diff --git a/backend/core/src/listings/listings.controller.ts b/backend/core/src/listings/listings.controller.ts index 17176a6cd1..f1857aae1d 100644 --- a/backend/core/src/listings/listings.controller.ts +++ b/backend/core/src/listings/listings.controller.ts @@ -49,6 +49,7 @@ export class ListingsController { ) { this.cacheKeys = [ "/listings", + "/listings?limit=all", "/listings?limit=all&filter[$comparison]=%3C%3E&filter[status]=pending", ] } diff --git a/backend/core/src/listings/listings.module.ts b/backend/core/src/listings/listings.module.ts index 0782faae98..f149d45e14 100644 --- a/backend/core/src/listings/listings.module.ts +++ b/backend/core/src/listings/listings.module.ts @@ -57,6 +57,12 @@ export class ListingsModule implements OnModuleDestroy { }) } onModuleDestroy() { + console.log("Disconnect from Redis") this.redisClient.quit() } + + onModuleInit() { + console.log("Reset Redis Cache") + this.redisClient.reset() + } }