about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-11-06 00:44:37 -0600
committermultiple creatures <dev@multiple-creature.party>2019-11-06 00:44:37 -0600
commitfacde93c4df94be5d2eafd1d79f17e111a9e9e76 (patch)
treecfecca217546f38c8d2f7b32e9fe76815cafac20 /app/controllers
parent0db4b0b9d550b22f531cc427ddc2dcd68b0a9ae1 (diff)
clear formatter cache when profile is changed
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/settings/profiles_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/settings/profiles_controller.rb b/app/controllers/settings/profiles_controller.rb
index afd525cc0..f9008727e 100644
--- a/app/controllers/settings/profiles_controller.rb
+++ b/app/controllers/settings/profiles_controller.rb
@@ -13,6 +13,8 @@ class Settings::ProfilesController < Settings::BaseController
   end
 
   def update
+    Rails.cache.delete("formatted_account:#{@account.id}")
+
     if UpdateAccountService.new.call(@account, account_params)
       ActivityPub::UpdateDistributionWorker.perform_async(@account.id)
       redirect_to settings_profile_path, notice: I18n.t('generic.changes_saved_msg')