fix: 修复缓存开关不生效

This commit is contained in:
TheSmallHanCat
2025-11-18 19:12:28 +08:00
parent 42683f97ae
commit b64e21018e
2 changed files with 1 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ class Config:
@property
def cache_enabled(self) -> bool:
"""Get cache enabled status"""
return self._config.get("cache", {}).get("enabled", True)
return self._config.get("cache", {}).get("enabled", False)
def set_cache_enabled(self, enabled: bool):
"""Set cache enabled status"""

View File

@@ -87,9 +87,6 @@ class GenerationHandler:
def _get_base_url(self) -> str:
"""Get base URL for cache files"""
# Reload config to get latest values
config.reload_config()
# Use configured cache base URL if available
if config.cache_base_url:
return config.cache_base_url.rstrip('/')