From 757036bfe2db3fa9da00c683e7b426279a58c39f Mon Sep 17 00:00:00 2001 From: Frederic Maury Date: Wed, 24 Apr 2024 09:37:25 +0200 Subject: [PATCH] feat: reduce ttl for cache to 1h --- backend/src/controllers/properties.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/controllers/properties.controller.ts b/backend/src/controllers/properties.controller.ts index 487d6d9..328dbd0 100644 --- a/backend/src/controllers/properties.controller.ts +++ b/backend/src/controllers/properties.controller.ts @@ -4,8 +4,8 @@ import { NextFunction, Request, Response } from "express"; const PropertiesCacheKey = 'properties' -// TTL is in seconds -const cachedTime = 60 * 60 * 12 // 24 hours +// TTL is in seconds, 1 hour +const cachedTime = 60 * 60 export async function get(req: Request, res: Response, next: NextFunction): Promise>> { try {