先 docker exec 進入 web server,然後執行:
RAILS_ENV=production tootctl cache clear RAILS_ENV=production tootctl media remove
reference: How to intelligently clear the cache?
# 重建 media # @see: https://docs.joinmastodon.org/admin/tootctl/#media-refresh RAILS_ENV=production tootctl media refresh --domain 'other.site.social' --verbose # 重建帳號相關檔案 # @see: https://docs.joinmastodon.org/admin/tootctl/#accounts-refresh RAILS_ENV=production tootctl accounts refresh --all --verbose
Reference