about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-11-18 05:09:18 -0600
committermultiple creatures <dev@multiple-creature.party>2019-11-18 05:09:18 -0600
commit59ef948640cb3c6cc268db29ef91a4f3718597e2 (patch)
treed0c634049981b2ef0d6f89221f0937778b0b93eb /app/models
parent345c6beb7e8a26e3537506ab3134c509d4ef6dc8 (diff)
Get rid of the `Formatter` cache. It isn't worth the admin headaches.
Diffstat (limited to 'app/models')
-rw-r--r--app/models/status.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index 5f19eaff2..86b4f6bb2 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -341,7 +341,6 @@ class Status < ApplicationRecord
   after_create :process_bangtags, if: :local?
 
   after_save :update_normalized_text
-  after_save :formatter_remove_cached
 
   class << self
     include SearchHelper
@@ -634,10 +633,6 @@ class Status < ApplicationRecord
     self.normalized_text = normalize_status(self)
   end
 
-  def formatter_remove_cached
-    Rails.cache.delete("formatted_status:#{self.id}")
-  end
-
   def set_conversation
     self.thread = thread.reblog if thread&.reblog?