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