From 59ef948640cb3c6cc268db29ef91a4f3718597e2 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 18 Nov 2019 05:09:18 -0600 Subject: Get rid of the `Formatter` cache. It isn't worth the admin headaches. --- app/models/status.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'app/models/status.rb') 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? -- cgit