Version: Search Guard 5 / This is an older version of Search Guard. Switch to Latest version

User cache settings

Search Guard uses a cache to store the roles of authenticated users. The default time to live (TTL) is one hour. This will for example speed up LDAP based authorisation, since the roles are fetched only once per hour.

The TTL of the cache can be adjusted by setting searchguard.cache.ttl_minutes in elasticsearch.yml:

searchguard.cache.ttl_minutes: <integer, ttl in minutes>`

Setting the value to 0 will completely disable the cache.

This feature is available since SG 15 and for ES 5.4.3 or higher