You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
702 B
14 lines
702 B
|
1 month ago
|
# 02 — 资源树变更触发缓存失效
|
||
|
|
|
||
|
|
**What to build:** 资源树写操作(新增/编辑/删除 button 节点)完成后,立即触发 ApiPermissionCache 失效,使后续请求按新规则拦截或放行,无需重启应用。
|
||
|
|
|
||
|
|
**Blocked by:** 01 — ApiPermissionCache + ApiPermissionInterceptor 核心拦截链路
|
||
|
|
|
||
|
|
**Status:** ready-for-agent
|
||
|
|
|
||
|
|
- [ ] ResourceServiceImpl.save() 完成后调 cache.invalidate()
|
||
|
|
- [ ] ResourceServiceImpl.delete() 完成后调 cache.invalidate()
|
||
|
|
- [ ] 集成测试:新增 button 节点后,新请求立即被拦截
|
||
|
|
- [ ] 集成测试:删除 button 节点后,新请求立即放行
|
||
|
|
- [ ] 集成测试:停用 button 节点后,新请求立即放行
|