mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 08:12:01 +08:00
FIX: iterate when clearing watched words cache
This commit is contained in:
parent
2a7d270fd6
commit
a7a7afdb27
@ -41,7 +41,7 @@ class WordWatcher
|
||||
end
|
||||
|
||||
def self.clear_cache!
|
||||
WatchedWord.actions.sum do |a, i|
|
||||
WatchedWord.actions.each do |a, i|
|
||||
Discourse.cache.delete word_matcher_regexp_key(a)
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user