mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
only publish distributed cache to user_id -1
This commit is contained in:
parent
a97f2eee05
commit
81f391e97f
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class DistributedCache
|
|||
|
||||
def self.publish(hash, message)
|
||||
message[:origin] = hash.object_id
|
||||
MessageBus.publish(channel_name, message)
|
||||
MessageBus.publish(channel_name, message, {user_ids: [-1]})
|
||||
end
|
||||
|
||||
def self.set(hash, key, value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue