Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Overwrite cache name to match old function
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Aug 23, 2022
1 parent e49e716 commit 0c54e9a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion synapse/storage/databases/main/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,12 @@ async def _get_joined_user_ids_from_context(

return users_in_room

@cached(max_entries=10000)
@cached(
max_entries=10000,
# This name matches the old function that has been replaced - the cache name
# is kept here to maintain backwards compatibility.
name="_get_joined_profile_from_event_id",
)
def _get_user_id_from_membership_event_id(
self, event_id: str
) -> Optional[Tuple[str, ProfileInfo]]:
Expand Down

0 comments on commit 0c54e9a

Please sign in to comment.