mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 18:50:55 +08:00

Why this change? This is caused by a regression in 59839e428f3dc49213fedfd8b67acb9f2a5ec69a, where we stopped saving the `Theme` object because it was unnecessary. However, it resulted in the `after_save` callback not being called and hence `Theme#update_javascript_cache!` not being called. As a result, some sites were reporting that after runing a theme migration, the defaults for the theme settings were used instead of the settings overrides stored in the database. What does this change do? Add a call to `Theme#update_javascript_cache!` after running theme migrations.