diff --git a/docbook/auth-server-docs/reference/en/en-US/modules/cache.xml b/docbook/auth-server-docs/reference/en/en-US/modules/cache.xml index 4d68eb4c4e..dec9ecfe42 100755 --- a/docbook/auth-server-docs/reference/en/en-US/modules/cache.xml +++ b/docbook/auth-server-docs/reference/en/en-US/modules/cache.xml @@ -22,12 +22,22 @@ (realm, application, client, roles, etc...) and one for users. These caches greatly improves the performance of the server. +
+ Eviction and Expiration + + + By default the user cache contains a maximum of 10000 entries. This is not 10000 users, but 10000 entries in the cache. You can change the maximum + number of entries by editing the server configuration standalone.xml or standalone-ha.xml. + Locate the element cache-container name="keycloak" and change the eviction policy for the users cache. For + more information see Infinispan Subsystem documentation. + +
+
Disabling Caches - The realm and user caches can be cleared through the management console. To - disable the realm or user cache, you must edit the keycloak-server.json file - in your distribution. Here's what the config looks like initially. + To disable the realm or user cache, you must edit the keycloak-server.json file + in your distribution. Here's what the config looks like initially. - You must then change it to: + To disable the cache set the enabled field to false for the cache you want to disable:
+
Clear Caches - To clear the realm or user cache, go to the Keycloak admin console Realm Settings->Cache Config page. Disable the cache - you want. This will cause the cache to be cleared. + To clear the realm or user cache, go to the Keycloak admin console Realm Settings->Cache Config page. On this page you can clear the realm cache + or the user cache. This will clear the caches for all realms and not only the selected realm.
diff --git a/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan.xml b/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan.xml index 79f741a832..837407aafb 100755 --- a/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan.xml +++ b/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan.xml @@ -26,7 +26,9 @@ - + + + @@ -87,7 +89,9 @@ - + + +