mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Allow DistributedCache#delete
to not publish changes.
This commit is contained in:
parent
13b2bf52c9
commit
7673684d91
2 changed files with 3 additions and 3 deletions
|
@ -128,9 +128,9 @@ class DistributedCache
|
|||
hash[k]
|
||||
end
|
||||
|
||||
def delete(k)
|
||||
def delete(k, publish: true)
|
||||
k = k.to_s if Symbol === k
|
||||
@manager.delete(self, k)
|
||||
@manager.delete(self, k) if publish
|
||||
hash.delete(k)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue