about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-12-07 20:48:38 -0600
committermultiple creatures <dev@multiple-creature.party>2019-12-07 20:48:38 -0600
commitfeceb543fd6df602c8c117247488e415ef89b78a (patch)
tree5889d4df8d77afb322d9160d2934018f82f07b87 /app
parent5d7349f2ab41f4e68080b10a988646d0aff17e2c (diff)
make sure filter cache gets wiped when a filter is deleted
Diffstat (limited to 'app')
-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