mirror of https://github.com/zulip/zulip.git
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:
parent
7233608d4e
commit
9911ec3e6d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue