WeightCalculatorWebFilter cause a wrong route
Describe the bug I created 2 routes use weight route predicate factory. After i remove one route and publish RefreshRoutesEvent, the route work not correctly, sometime it redirect to old route. As i checked, WeightCalculatorWebFilter still has old data in config.weights, that may be the reason.
Sample
[
{
predicate: "(Paths: [/redirect/dbsync/], match trailing slash: true && Weight: group 5)",
route_id: "r1",
filters: [
"[[RewritePath /redirect/dbsync/(?