about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/custom_filter.rb12
1 files changed, 0 insertions, 12 deletions
diff --git a/app/models/custom_filter.rb b/app/models/custom_filter.rb
index 28d413d9b..a90b99c48 100644
--- a/app/models/custom_filter.rb
+++ b/app/models/custom_filter.rb
@@ -18,16 +18,4 @@ class CustomFilter < ApplicationRecord
   belongs_to :account
 
   validates :phrase, presence: true
-
-  after_commit :remove_cache
-
-  private
-
-  def remove_cache
-    Rails.cache.delete("filters:#{account_id}")
-    redis.del("custom_cw:#{account_id}")
-    redis.del("filtered_threads:#{account_id}")
-    redis.del("filtered_statuses:#{account_id}")
-    Redis.current.publish("timeline:#{account_id}", Oj.dump(event: :filters_changed))
-  end
 end