mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
3ea8df4b06
We noticed via profiling that chat was doing N redis calls per channel. Part of this was from the kick_message_bus_last_id from 520d4f504b5d0e8b76343b179f72f8a137423d52 being 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 in 12a18d4d553b6c11a7f45f686ab699aa72c3312f