mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 12:25:59 +08:00
Revert "FEATURE: force rebake of all posts with images"
This reverts commit 30a1d29a7eea11f949911bef5768618b89ac1753 due to performance issues on large clusters
This commit is contained in:
parent
b089ac1537
commit
cb317430a1
@ -1,16 +0,0 @@
|
|||||||
class ForceRebakeOnPostsWithImages < ActiveRecord::Migration[5.2]
|
|
||||||
def up
|
|
||||||
|
|
||||||
# commit message has more info:
|
|
||||||
# Picking up changes with pngquant, placeholder image, new image magick, retina images
|
|
||||||
|
|
||||||
execute <<~SQL
|
|
||||||
UPDATE posts SET baked_version = 0
|
|
||||||
WHERE id IN (SELECT post_id FROM post_uploads)
|
|
||||||
SQL
|
|
||||||
end
|
|
||||||
|
|
||||||
def down
|
|
||||||
# no op, does not really matter
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
x
Reference in New Issue
Block a user