mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 17:54:15 +08:00
修复清除数据后看板/监控仍显示旧数据的根因: 数据缓存清理 (repository/screener/overview): - repository.py: 新增 clear_cache() 无条件清空全部 Polars 内存缓存; 修复 _refresh_enriched() 磁盘无数据时不清内存导致旧数据残留的 bug - screener.py: 新增 clear_history_cache() 清进程级 _history_cache (TTL 缓存) - overview.py: 新增 invalidate_overview_cache() 清看板聚合结果 5s TTL 缓存 清除数据完整性 (data.py): - clear_data 删除 parquet 后统一调用三层缓存清理 - 新增清除监控运行数据: alert_store.clear() 清 alerts.jsonl + _pending_alerts 内存队列 (原 clear_data 漏删 user_data/alerts.jsonl, 导致触发记录清不掉) 版本号统一: - /api/data/version 改为优先读 app.__version__ (与 /health 同源), 原 pyproject.toml 路径解析有误读不到, 回退到陈旧的 VERSION 文件 - Windows GBK 编码修复: __init__.py 强制 stdout/stderr UTF-8, 避免 TickFlow SDK 输出含 emoji 的指数名称时崩溃 (gbk codec can't encode)