mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
FIX: iterate when clearing watched words cache
This commit is contained in:
parent
b1ca64487a
commit
6de254f642
@ -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…
Reference in New Issue
Block a user