mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 19:13:44 +08:00
10 lines
260 B
Ruby
10 lines
260 B
Ruby
# frozen_string_literal: true
|
|
|
|
# On initialize, reset flags cache
|
|
Rails.application.config.to_prepare do
|
|
if Discourse.cache.is_a?(Cache) &&
|
|
!ActiveRecord::Base.connection_pool.migration_context.needs_migration?
|
|
Flag.reset_flag_settings!
|
|
end
|
|
end
|