How does cache invalidation work?


I am looking to understand how cache invalidation works in keycloak. I have a cluster of two keycloak servers running in domain mode. I noticed that when I update some realm settings on one server, the other server doesn’t report it until I clear it’s realm cache. Is this the intended behaviour?

The documentation here says the following:
Local caches do not use replication even if you are in the cluster with more Keycloak servers. Instead, they only keep copies locally and if the entry is updated an invalidation message is sent to the rest of the cluster and the entry is evicted.

Does this mean that the realm cache entry for a particular setting on the other server should be getting invalidated automatically when I update that setting in the first server? If so, why isn’t that happening for me? Do I need to configure this somewhere?