KEYCLOAK-14875 Enable path cache when maxAge is -1, or greater than 0
This commit is contained in:
parent
c4fca5895f
commit
c7867c4c0d
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ public class PathCache {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
this.maxAge = maxAge;
|
this.maxAge = maxAge;
|
||||||
this.enabled = maxAge > 0;
|
this.enabled = ! (maxAge < -1 || (maxAge > -1 && maxAge <= 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void put(String uri, PathConfig newValue) {
|
public void put(String uri, PathConfig newValue) {
|
||||||
|
|
Loading…
Reference in a new issue