mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: iterate when clearing watched words cache
This commit is contained in:
@@ -41,7 +41,7 @@ class WordWatcher
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.clear_cache!
|
def self.clear_cache!
|
||||||
WatchedWord.actions.sum do |a, i|
|
WatchedWord.actions.each do |a, i|
|
||||||
Discourse.cache.delete word_matcher_regexp_key(a)
|
Discourse.cache.delete word_matcher_regexp_key(a)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user