mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +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:
@@ -76,7 +76,7 @@ def user_by_id_cache_key(user_id):
|
||||
def update_user_profile_cache(sender, **kwargs):
|
||||
user_profile = kwargs['instance']
|
||||
items_for_memcached = {}
|
||||
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_profile_by_id_cache_key(user_profile.id)] = (user_profile,)
|
||||
djcache.set_many(items_for_memcached)
|
||||
|
||||
Reference in New Issue
Block a user