Implement caching system for NHL managers to reduce API calls: - Add CacheManager class with singleton pattern - Update _fetch_data to use caching - Optimize update intervals in config.json - Reduce API calls by ~48%

This commit is contained in:
ChuckBuilds
2025-04-18 18:29:34 -05:00
parent 4815f9f143
commit 6c60ac46f2
2 changed files with 79 additions and 8 deletions

View File

@@ -67,10 +67,10 @@
"nhl_scoreboard": {
"enabled": true,
"test_mode": false,
"update_interval_seconds": 60,
"live_update_interval": 30,
"recent_update_interval": 3600,
"upcoming_update_interval": 3600,
"update_interval_seconds": 300,
"live_update_interval": 60,
"recent_update_interval": 1800,
"upcoming_update_interval": 1800,
"recent_game_hours": 48,
"favorite_teams": ["TB", "DAL"],
"logo_dir": "assets/sports/nhl_logos",