mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +00:00
Access the UserProfile's new email field rather than using User.
This is preparatory for stopping using the User model. (imported from commit a1b0808c8cc2ddd19a25163f91c4f18620c9ce90)
This commit is contained in:
@@ -23,7 +23,7 @@ def message_cache_items(items_for_memcached, message):
|
||||
items_for_memcached[message_cache_key(message.id)] = (message,)
|
||||
|
||||
def user_cache_items(items_for_memcached, user_profile):
|
||||
items_for_memcached[user_profile_by_email_cache_key(user_profile.user.email)] = (user_profile,)
|
||||
items_for_memcached[user_profile_by_email_cache_key(user_profile.email)] = (user_profile,)
|
||||
items_for_memcached[user_profile_by_user_cache_key(user_profile.user.id)] = (user_profile,)
|
||||
items_for_memcached[user_by_id_cache_key(user_profile.user.id)] = (user_profile.user,)
|
||||
items_for_memcached[user_profile_by_id_cache_key(user_profile.id)] = (user_profile,)
|
||||
|
||||
Reference in New Issue
Block a user