mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 00:13:52 +08:00
180e3e11d1
This commit introduces a redis cache over the top of the thread replies_count DB cache, so that we can quickly and accurately increment/decrement the reply count for all users and not have to constantly update the database-level count. This is done so the UI can have a count that is displayed to the users on each thread indicator, that appears to live update on each chat message create/trash/recover inside the thread. This commit also introduces the `Chat::RestoreMessage` service and moves the restore endpoint into the `Api::ChannelMessages` controller as part of incremental migrations to move things out of ChatController. Finally, this commit refactors `Chat::Publisher` to be less repetitive with its `MessageBus` sending code. |
||
---|---|---|
.. | ||
chat | ||
email_controller_helper | ||
onebox/templates | ||
tasks | ||
service_runner.rb |