mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 01:13:38 +08:00
DEV: Change priority to ultra_low for post-s3-migration rebake
This commit is contained in:
parent
abbe812a0d
commit
20daa76829
|
@ -425,7 +425,9 @@ def migrate_to_s3
|
|||
|
||||
puts "Rebaking posts with lightboxes..."
|
||||
|
||||
Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each(&:rebake!)
|
||||
Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each do |post|
|
||||
post.rebake!(priority: :ultra_low)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user