Skip to content

Commit

Permalink
feat: reduce ttl for cache to 1h
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-maury committed Apr 24, 2024
1 parent be59bef commit 757036b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/controllers/properties.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Response<any, Record<string, any>>> {
try {
Expand Down

0 comments on commit 757036b

Please sign in to comment.