diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-23 18:20:34 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-23 18:20:34 -0500 |
commit | de542eca57fabf7836ad1c7f7f4a36974afd2412 (patch) | |
tree | aa0b8bd794dcc9f3b98dd22ef3675bb2ee746bcf | |
parent | 913ef775ab9e728690becf7ec66d94e43e4c6e59 (diff) |
clear caches after changing lifespan of existing roars
-rw-r--r-- | app/lib/bangtags.rb | 6 |
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 = [ |