Skip to content

Commit

Permalink
KEYCLOAK-14875 Enable path cache when maxAge is -1, or greater than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ASzc authored and pedroigor committed Jul 28, 2020
1 parent c4fca58 commit c7867c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected boolean removeEldestEntry(Map.Entry eldest) {
}
};
this.maxAge = maxAge;
this.enabled = maxAge > 0;
this.enabled = ! (maxAge < -1 || (maxAge > -1 && maxAge <= 0));
}

public void put(String uri, PathConfig newValue) {
Expand Down

0 comments on commit c7867c4

Please sign in to comment.