cache: Add `long_term_idle` in `realm_user_dict_fields`.

We need this field to avoid O(N) database operations
while fetching realm user data for clients with
`user_avatar_url_field_optional` flag enabled.

Part of #15287.
This commit is contained in:
Hashir Sarwar 2020-06-13 10:44:11 +05:00 committed by Tim Abbott
parent 7233608d4e
commit 9911ec3e6d
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ realm_user_dict_fields: List[str] = [
'avatar_source', 'avatar_version', 'is_active',
'role', 'is_bot', 'realm_id', 'timezone',
'date_joined', 'bot_owner_id', 'delivery_email',
'bot_type',
'bot_type', 'long_term_idle'
]
def realm_user_dicts_cache_key(realm_id: int) -> str: