269
269
cache_set(user_profile_by_id_cache_key(user_profile.id), user_profile, timeout=3600*24*7)
271
active_user_dict_fields = ['id', 'full_name', 'short_name', 'email', 'is_realm_admin', 'is_bot']
271
active_user_dict_fields = ['id', 'full_name', 'short_name', 'email', 'is_realm_admin', 'is_bot'] # type: List[str]
272
272
def active_user_dicts_in_realm_cache_key(realm):
274
274
return "active_user_dicts_in_realm:%s" % (realm.id,)