about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-23 18:20:34 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-23 18:20:34 -0500
commitde542eca57fabf7836ad1c7f7f4a36974afd2412 (patch)
treeaa0b8bd794dcc9f3b98dd22ef3675bb2ee746bcf /app
parent913ef775ab9e728690becf7ec66d94e43e4c6e59 (diff)
clear caches after changing lifespan of existing roars
Diffstat (limited to 'app')
-rw-r--r--app/lib/bangtags.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb
index 788eb8eab..0f4dec3f1 100644
--- a/app/lib/bangtags.rb
+++ b/app/lib/bangtags.rb
@@ -578,9 +578,13 @@ class Bangtags
                            i.years
                          end
           if s == :all
-            @account.statuses.find_each { |s| s.delete_after = delete_after }
+            @account.statuses.find_each do |s|
+              s.delete_after = delete_after
+              Rails.cache.delete("statuses/#{s.id}")
+            end
           else
             s.delete_after = delete_after
+            Rails.cache.delete("statuses/#{s.id}")
           end
         when 'keysmash'
           keyboard = [