mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:32:44 +08:00
only publish distributed cache to user_id -1
This commit is contained in:
parent
a97f2eee05
commit
81f391e97f
|
@ -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…
Reference in New Issue
Block a user