about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/models/custom_filter.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/custom_filter.rb b/app/models/custom_filter.rb
index 67d1a0bea..e5e0d1554 100644
--- a/app/models/custom_filter.rb
+++ b/app/models/custom_filter.rb
@@ -19,8 +19,10 @@ class CustomFilter < ApplicationRecord
 
   validates :phrase, presence: true
 
-  after_save :update_feeds
   after_save :remove_cache
+  after_save :update_feeds
+
+  after_destroy :remove_cache
 
   private