discourse/plugins/chat/app/services
Martin Brennan 3ea8df4b06
DEV: Fix excessive MessageBus#last_id calls in chat (#20855)
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 520d4f504b 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 12a18d4d55
2023-03-28 14:45:45 +10:00
..
chat DEV: Fix excessive MessageBus#last_id calls in chat (#20855) 2023-03-28 14:45:45 +10:00
service DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
service.rb DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00