fix: links cache TTL 1h -> 20m

This commit is contained in:
SashegDev
2026-09-14 06:51:13 +00:00
parent 48859d09b9
commit 814f103bb4
+1 -1
View File
@@ -63,7 +63,7 @@ _background_tasks: List[asyncio.Task] = []
_links_cache: Dict[str, Tuple[List[str], float]] = {} _links_cache: Dict[str, Tuple[List[str], float]] = {}
_traffic_cache: Dict[str, Tuple[Dict, float]] = {} _traffic_cache: Dict[str, Tuple[Dict, float]] = {}
CACHE_TTL_TRAFFIC = 120 CACHE_TTL_TRAFFIC = 120
CACHE_TTL_LINKS = 3600 CACHE_TTL_LINKS = 1200
# Server health tracking # Server health tracking
_server_health: Dict[str, bool] = {} _server_health: Dict[str, bool] = {}