unify config
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user