2026-10-28 11:14:17 +08:00

15 lines
950 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 2026-07-08 操作日志
## 计划预测缓存优化
- 文件缓存共享:RefreshableCache 改成内存+文件双缓存,所有 Gunicorn worker 共享 `tmp_cache/`
- 补齐4个缺失缓存函数:加工厂库存、云仓库存、外仓库存、在途库存
- 全局配置 `get_global_config()` 改用 RefreshableCache
- `refresh_all_caches()` 同时删除文件缓存,所有 worker 自动重建
- 效果:冷启动~1.3s(之前~3s),缓存命中后18ms
## 进度图标弹窗改悬浮提示 & 弹窗遮罩规则统一
- 修复进度图标点击变黑:原内联 onclick 将进度文本直接嵌入 JS 字符串,特殊字符导致弹窗渲染异常
- 改用 `data-progress` 属性 + `escHtml()` 安全传递进度文本
- 去除 `showCenteredAlert` 弹窗,改为 CSS `::after` 伪元素悬浮提示(.progress-tip)
- `showCenteredAlert` 和 `showCenteredConfirm` 遮罩层点击不再关闭弹窗,统一只能通过按钮关闭