A platform for community discussion. Free, open, simple.
FIX: iterate when clearing watched words cache
Jeff Wong6de254f64263
diff --git a/app/services/word_watcher.rb b/app/services/word_watcher.rbindex 762f56cd543..0cddc96fc24 100644--- a/app/services/word_watcher.rb+++ b/app/services/word_watcher.rb@@ -41,7 +41,7 @@ class WordWatcherenddef self.clear_cache!- WatchedWord.actions.sum do |a, i|+ WatchedWord.actions.each do |a, i|Discourse.cache.delete word_matcher_regexp_key(a)endend