mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
I move the helper user_ids_to_users to the only place that it's used, and then I simplify it to do a direct database query. These endpoints aren't hit often enough to justify caching complexity, and for really large user groups, hitting the cache can actually be counterproductive. Particularly when you add new users to an existing group, the bulk of the cost is sending out notification messages to users. The only change to the test is that I added an assertion on the query count.