You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve speed of import when uploads are available locally #83
Modify the WXR attachment URLs so they reference localhost (where the local web host is serving the copy)
Temporarily modify http_request_host_is_external to be __return_true to allow localhost URL during import
This seems to have largely removed the attachment portion of the import as a performance bottleneck for us. However it's a solution that is very specific, complex, and unattainable in a lot of hosting environments.
Activity
danielbachhuber commentedon Aug 21, 2023
Thanks for the suggestion, @TimidRobot !
This sounds like a great idea. We'd want to make it an opt-in behavior via flag or something similar. Here's another approach I've used in the past: https://danielbachhuber.com/two-wordpress-migration-performance-tips/
Feel free to submit a pull request, if you'd like. Here is some guidance on our pull request best practices.
TimidRobot commentedon Aug 21, 2023
@danielbachhuber thank you for the link!
The method we're currently using is:
wp-content/uploads/from source using rsynchttp_request_host_is_externalto be__return_trueto allow localhost URL during importThis seems to have largely removed the attachment portion of the import as a performance bottleneck for us. However it's a solution that is very specific, complex, and unattainable in a lot of hosting environments.