mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
We noticed via profiling that chat was doing N redis calls per channel. Part of this was from the kick_message_bus_last_id from520d4f504bbeing incorrectly passed down for DM channels rather that public channels, and the other part was from the root MessageBus channel last_id being fetched in ChannelSerializer for every single channel. This commit fixes both issues, for me going from 134 redis calls on page load to 20 locally. Also deletes an old file missed in12a18d4d55