From facde93c4df94be5d2eafd1d79f17e111a9e9e76 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Wed, 6 Nov 2019 00:44:37 -0600 Subject: clear formatter cache when profile is changed --- app/controllers/settings/profiles_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/settings/profiles_controller.rb') 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') -- cgit