iwangjie commented on code in PR #4380:
URL: https://github.com/apache/shenyu/pull/4380#discussion_r1105446548
##########
shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/RuleServiceImpl.java:
##########
@@ -152,11 +152,17 @@ public int update(final RuleDTO ruleDTO) {
Assert.notNull(before, "the updated rule is not found");
RuleDO ruleDO = RuleDO.buildRuleDO(ruleDTO);
final int ruleCount = ruleMapper.updateSelective(ruleDO);
+
+ // need old data for cleaning
+ final List<RuleConditionDO> beforeRuleCondition =
ruleConditionMapper.selectByQuery(new RuleConditionQuery(ruleDO.getId()));
Review Comment:
because the gateway uses the prefix tree to handle the cache, I can not
clean up the history cache if Conditions change, so I pass the pre-modified
Conditions to the past for precision cleaning.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]