FIX: iterate when clearing watched words cache

This commit is contained in:
Jeff Wong 2019-06-24 16:06:32 -07:00
parent b1ca64487a
commit 6de254f642
1 changed files with 1 additions and 1 deletions

View File

@ -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