From de542eca57fabf7836ad1c7f7f4a36974afd2412 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 23 Jul 2019 18:20:34 -0500 Subject: clear caches after changing lifespan of existing roars --- app/lib/bangtags.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = [ -- cgit