about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-11-18 04:38:27 -0600
committermultiple creatures <dev@multiple-creature.party>2019-11-18 04:38:27 -0600
commit2c32b36a57c7e00c34b06d3c223b291e06c651cc (patch)
tree04df6a26bf45854438144ba0d2d672140a83a993 /app/models
parent0d372272662331e0783580d1a91ed9125ad4b4f1 (diff)
Remove filter caches.
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