You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if it is a BUG or Enhancement feature.
Problem:
Today i have some services that i want to support different cache rules to different routes to my service, but as it is today in sortCaches function if i have different cache rules with groups it logs errors and return 0 cache rules to be applied.
I don't know if it is a BUG or Enhancement feature.
Problem:
Today i have some services that i want to support different cache rules to different routes to my service, but as it is today in
sortCaches
function if i have different cache rules with groups it logs errors and return 0 cache rules to be applied.tree-gateway/src/pipeline/cache/cache.ts
Line 110 in a1ed94e
It doesn't allow me for example to do as follows:
With this type of config today, it returns 0 cache rules and the gateway doesn't cache anything into redis.
As I said, i don't know if this is a intended behaviour or it is a BUG.
Solution
To support different cache rules to distinct paths we could do:
I'm currently forking and posting my PR with the last option implemented, but we should discuss the best option to go from here.
The text was updated successfully, but these errors were encountered: