mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 03:53:43 +08:00
12 lines
274 B
Ruby
12 lines
274 B
Ruby
|
module Jobs
|
||
|
class RebakeAllHtmlThemeFields < Jobs::Onceoff
|
||
|
def execute_onceoff(args)
|
||
|
ThemeField.where(type_id: ThemeField.types[:html]).find_each do |theme_field|
|
||
|
theme_field.update(value_baked: nil)
|
||
|
end
|
||
|
|
||
|
Theme.clear_cache!
|
||
|
end
|
||
|
end
|
||
|
end
|