Skip to content

Commit ef014d6

Browse files
committed
refactor(config): 移除缓存超时设置
移除了 .env.example 和 config.py 中的 CACHE_TIMEOUT 配置项,保留了 CACHE_TTL_MINUTES 设置。
1 parent 135d277 commit ef014d6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.env.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ WEBHOOK_URL=https://yourname-project.hf.space
66
WEBHOOK_PATH=/api/v1/webhook
77

88
# Cache Settings
9-
CACHE_TIMEOUT=5
109
CACHE_TTL_MINUTES=10
1110

1211
# Privacy Settings

app/core/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ def __init__(self):
2525
self.APP_WORKERS = int(os.environ.get("APP_WORKERS", "4"))
2626
self.DEBUG = os.environ.get("DEBUG", "False").lower() in ("true", "1", "t")
2727

28-
# Cache Configuration (in minutes)
29-
self.CACHE_TIMEOUT = int(os.environ.get("CACHE_TIMEOUT", "5") or "5")
28+
3029

3130

3231
# External Service URLs

0 commit comments

Comments
 (0)