Skip to content

A platform for community discussion. Free, open, simple.

FIX: Optimized site icons were missing after backup restore

Gerhard Schlager2487e01c73b2
diff --git a/lib/backup_restore/restorer.rb b/lib/backup_restore/restorer.rb
index d53d9711833..48c8f080284 100644
--- a/lib/backup_restore/restorer.rb
+++ b/lib/backup_restore/restorer.rb
@@ -452,6 +452,9 @@ module BackupRestore
end
def generate_optimized_images
+ log 'Optimizing site icons...'
+ SiteIconManager.ensure_optimized!
+
log 'Posts will be rebaked by a background job in sidekiq. You will see missing images until that has completed.'
log 'You can expedite the process by manually running "rake posts:rebake_uncooked_posts"'