
=== Disabling caching

You can disable the realm or user cache.

.Procedure

. Edit the `standalone.xml`, `standalone-ha.xml`,  or `domain.xml` file in your distribution.
+
The location of this file depends on your <<_operating-mode, operating mode>>.  
Here is a sample config file.
+
[source,xml]
----

    <spi name="userCache">
        <provider name="default" enabled="true"/>
    </spi>

    <spi name="realmCache">
        <provider name="default" enabled="true"/>
    </spi>

----

. Set the `enabled` attribute to false for the cache you want to disable.

. Reboot your server for this change to take effect.


