feat: 自定义数据源扩展 + 限频集中化 (v0.1.80)

This commit is contained in:
shy3130
2026-07-05 22:57:46 +08:00
parent e524ea4893
commit fa08981851
38 changed files with 2819 additions and 123 deletions
+1 -2
View File
@@ -663,8 +663,7 @@ def clear_data(request: Request):
# - 待推送的实时通知队列 (进程内存)
qs = getattr(request.app.state, "quote_service", None)
if qs is not None:
with qs._lock:
qs._pending_alerts.clear()
qs.clear_pending_alerts()
# 清除 Polars 缓存
# 先 clear_cache 无条件清空内存 (refresh_cache 在磁盘无数据时会提前 return,