yueli
2e903cff2c
perf: 规格连号助手优化 — 流式查询+宽松regex+Redis缓存
## base_service.py get_latest_specs
- .all()全量→with_entities().limit(10000) 防OOM
- regex放宽: 支持 LICA-3000/M3x12 等格式(旧版仅匹配OPT12046)
- 移除OPT硬编码→SUB_CATEGORY_PREFIXES可配置集合
- Redis缓存(1h): 首次查询后缓存,后续命中直接返回
## base.py 缓存失效
- 新增 _invalidate_specs_cache() 辅助函数
- create/update/delete 成功后清除缓存
2026-07-16 18:15:43 +08:00
..
2026-05-21 14:09:57 +08:00
2026-07-16 18:15:43 +08:00
2026-05-27 09:57:01 +08:00
2026-07-15 09:22:58 +08:00
2026-06-10 11:30:07 +08:00
2026-07-15 17:37:57 +08:00
2026-07-15 11:49:53 +08:00
2026-07-13 15:12:22 +08:00
2026-07-16 14:00:28 +08:00
2026-07-16 11:26:12 +08:00
2026-07-15 17:37:57 +08:00
2026-07-16 17:34:24 +08:00
2026-07-16 13:08:45 +08:00
2026-07-15 17:37:57 +08:00