mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
9 lines
234 B
Ruby
9 lines
234 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.table_exists?(:flags)
|
||
|
Flag.reset_flag_settings!
|
||
|
end
|
||
|
end
|