reduce cache ttl

This commit is contained in:
chrisk325 2026-03-06 04:30:52 +05:30 committed by GitHub
parent 1f64ee453a
commit 4c6aa39ccf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,7 +15,7 @@ interface CacheEntry {
export class TrailerService {
// Cache for 3 minutes — just enough to avoid re-extracting on quick re-renders
private static readonly CACHE_TTL_MS = 3 * 60 * 1000;
private static readonly CACHE_TTL_MS = 30 * 1000;
private static urlCache = new Map<string, CacheEntry>();
// ---------------------------------------------------------------------------