Backport fix for #194 (LDAP: clear the cache not only when TTL changes, but with every settings update) to stable45