refacto(thumbnails): revew thumbnails and caching

This commit is contained in:
Julien Froidefond
2025-02-16 16:02:07 +01:00
parent 683a4821f3
commit 938e0461ae
2 changed files with 57 additions and 11 deletions

View File

@@ -12,6 +12,7 @@ class ServerCacheService {
private static readonly tenMinutes = 10 * 60;
private static readonly twentyFourHours = 24 * 60 * 60;
private static readonly oneMinute = 1 * 60;
private static readonly oneWeek = 7 * 24 * 60 * 60;
private static readonly noCache = 0;
// Configuration des temps de cache en secondes
@@ -21,7 +22,7 @@ class ServerCacheService {
LIBRARIES: ServerCacheService.twentyFourHours,
SERIES: ServerCacheService.fiveMinutes,
BOOKS: ServerCacheService.fiveMinutes,
IMAGES: ServerCacheService.twentyFourHours,
IMAGES: ServerCacheService.oneWeek,
};
private constructor() {