unify config

This commit is contained in:
overcuriousity
2025-09-14 16:17:26 +02:00
parent 3511f18f9a
commit 689e8c00d4
7 changed files with 100 additions and 178 deletions

View File

@@ -82,7 +82,7 @@ class BaseProvider(ABC):
# Caching configuration (per session)
self.cache_dir = f'.cache/{id(self.config)}' # Unique cache per session config
self.cache_expiry = 12 * 3600 # 12 hours in seconds
self.cache_expiry = self.config.cache_expiry_hours * 3600
if not os.path.exists(self.cache_dir):
os.makedirs(self.cache_dir)