mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Rename userprofile_by_foo cache keys to user_profile_by_foo.
(imported from commit ef398abc48c9b81a3d339ffdce00bae274246d28)
This commit is contained in:
@@ -18,7 +18,7 @@ from zephyr.lib.create_user import create_user
|
||||
from zephyr.lib.bulk_create import batch_bulk_create
|
||||
from zephyr.lib import bugdown
|
||||
from zephyr.lib.cache import cache_with_key, user_profile_by_id_cache_key, \
|
||||
userprofile_by_email_cache_key
|
||||
user_profile_by_email_cache_key
|
||||
from zephyr.decorator import get_user_profile_by_email, json_to_list
|
||||
|
||||
import subprocess
|
||||
@@ -108,7 +108,7 @@ def compute_mit_user_fullname(email):
|
||||
traceback.print_exc()
|
||||
return email.lower()
|
||||
|
||||
@cache_with_key(lambda realm, email: userprofile_by_email_cache_key(email))
|
||||
@cache_with_key(lambda realm, email: user_profile_by_email_cache_key(email))
|
||||
@transaction.commit_on_success
|
||||
def create_mit_user_if_needed(realm, email):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user