KEYCLOAK-14875 Enable path cache when maxAge is -1, or greater than 0

This commit is contained in:
Alex Szczuczko 2020-07-23 08:11:15 -06:00 committed by Pedro Igor
parent c4fca5895f
commit c7867c4c0d

View file

@ -57,7 +57,7 @@ public class PathCache {
}
};
this.maxAge = maxAge;
this.enabled = maxAge > 0;
this.enabled = ! (maxAge < -1 || (maxAge > -1 && maxAge <= 0));
}
public void put(String uri, PathConfig newValue) {