mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:51:08 +08:00
only publish distributed cache to user_id -1
This commit is contained in:
@ -55,7 +55,7 @@ class DistributedCache
|
|||||||
|
|
||||||
def self.publish(hash, message)
|
def self.publish(hash, message)
|
||||||
message[:origin] = hash.object_id
|
message[:origin] = hash.object_id
|
||||||
MessageBus.publish(channel_name, message)
|
MessageBus.publish(channel_name, message, {user_ids: [-1]})
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.set(hash, key, value)
|
def self.set(hash, key, value)
|
||||||
|
Reference in New Issue
Block a user