Skip to content

Commit

Permalink
Disable caching for map storage.
Browse files Browse the repository at this point in the history
Also aligns the properties with the integration test suite to avoid confusion.

Closes keycloak#11748
  • Loading branch information
ahus1 authored and hmlnarik committed Apr 29, 2022
1 parent 8107827 commit e2cf6ae
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions testsuite/utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@
<systemProperty><key>keycloak.userSession.provider</key><value>map</value></systemProperty>
<systemProperty><key>keycloak.loginFailure.provider</key><value>map</value></systemProperty>
<systemProperty><key>keycloak.authorization.provider</key><value>map</value></systemProperty>
<systemProperty><key>keycloak.authorizationCache.enabled</key><value>false</value></systemProperty>
<systemProperty><key>keycloak.realmCache.enabled</key><value>false</value></systemProperty>
<systemProperty><key>keycloak.userCache.enabled</key><value>false</value></systemProperty>
</systemProperties>
</configuration>
</plugin>
Expand Down
18 changes: 16 additions & 2 deletions testsuite/utils/src/main/resources/META-INF/keycloak-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,23 @@
},

"realmCache": {
"provider": "${keycloak.realm.cache.provider:default}",
"default" : {
"enabled": "${keycloak.realm.cache.provider.enabled:true}"
"enabled": "${keycloak.realmCache.enabled:true}"
}
},

"userCache": {
"default" : {
"enabled": "${keycloak.userCache.enabled:true}"
},
"mem": {
"maxSize": 20000
}
},

"authorizationCache": {
"default": {
"enabled": "${keycloak.authorizationCache.enabled:true}"
}
},

Expand Down

0 comments on commit e2cf6ae

Please sign in to comment.