about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 = [