A platform for community discussion. Free, open, simple.
FIX: Update word_watcher cache key following schema change (#17755)
David Taylor381365facc17
diff --git a/app/services/word_watcher.rb b/app/services/word_watcher.rbindex 4f5b516b624..b6b136d00c5 100644--- a/app/services/word_watcher.rb+++ b/app/services/word_watcher.rb@@ -2,6 +2,7 @@class WordWatcherREPLACEMENT_LETTER ||= CGI.unescape_html("■")+ CACHE_VERSION = 2def initialize(raw)@raw = raw@@ -105,7 +106,7 @@ class WordWatcherenddef self.word_matcher_regexp_key(action)- "watched-words-list:#{action}"+ "watched-words-list:v#{CACHE_VERSION}:#{action}"enddef self.censor(html)