diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-28 09:55:14 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:20 -0500 |
commit | 8bf2aaf0e9e8290bcbc979471638d2e69b2d73b5 (patch) | |
tree | 1d433812232486f6e88d19b94403e94417175bfc /app/lib/command_tag/processor.rb | |
parent | a4c56505f41a191a21e595c26060510df3f2b909 (diff) |
[Performance] Cache results of formatting
Diffstat (limited to 'app/lib/command_tag/processor.rb')
-rw-r--r-- | app/lib/command_tag/processor.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb index 5a1f6a68d..f758994a0 100644 --- a/app/lib/command_tag/processor.rb +++ b/app/lib/command_tag/processor.rb @@ -232,6 +232,7 @@ class CommandTag::Processor Rails.cache.delete_matched("statuses/#{status.id}-*") Rails.cache.delete("statuses/#{status.id}") Rails.cache.delete(status) + Rails.cache.delete_matched("format:#{status.id}:*") redis.zremrangebyscore("spam_check:#{status.account.id}", status.id, status.id) end end |