feat: 热点穿透题材数从50提升到100,支持缓存定向清理

- 热点穿透top由50提升到100(涨幅榜+热度榜各取前100合并),保证题材数≥100
- themes.py graph路由top上限le由60放宽到200
- daily_collector HOTMAP_TOP_N同步到100与页面一致
- auvops.sh新增cache-clear-graph子命令定向清理theme_graph缓存
This commit is contained in:
Sakurasan
2026-08-18 04:14:17 +08:00
parent 48522cbfea
commit bb2be17ae2
5 changed files with 23 additions and 5 deletions
+2 -2
View File
@@ -308,7 +308,7 @@ async def _build_theme_graph(sort_field: int, top_n: int) -> dict:
Args:
sort_field: 题材排序 1=涨幅, 4=热度(当前榜在前,另一榜合并补充)
top_n: 每个榜单的题材数量(1-60)
top_n: 每个榜单的题材数量(1-200)
Returns:
{
@@ -422,7 +422,7 @@ async def fetch_theme_graph(sort_field: int = 1, top_n: int = 30, limit: int = 1
Args:
sort_field: 题材排序 1=涨幅, 4=热度
top_n: 每个榜单的题材数量(1-60)
top_n: 每个榜单的题材数量(1-200)
limit: 下发 stocks 上限(穿透度最高的 N 只)
"""
cache_key = f"theme_graph:{sort_field}:{top_n}"