updates to caching

This commit is contained in:
Chuck
2025-07-21 21:02:19 -05:00
parent 2516a06ad3
commit 3a450b717a
7 changed files with 36 additions and 16 deletions

View File

@@ -162,7 +162,7 @@ class StockNewsManager:
return
# Get cached data
cached_data = self.cache_manager.get_cached_data('stock_news')
cached_data = self.cache_manager.get('stock_news')
# Update each symbol
new_data = {}
@@ -186,6 +186,8 @@ class StockNewsManager:
success = True
if success:
# Cache the new data
self.cache_manager.update_cache('stock_news', new_data)
# Only update the displayed data when we have new data
self.news_data = new_data
self.last_update = current_time