Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Improve speed of import when uploads are available locally #83

@TimidRobot

Description

@TimidRobot

Feature Request

Describe your use case and the problem you are facing

I am importing a site with almost 4GB of media and almost 10,000 posts and it takes longer than I'd like.

Describe the solution you'd like

Potential solutions:

  • Check to see if file exists in wp-content/uploads/ already. If it does, use it instead of fetching it
    • To be fast this would need to be naive (matching only file name) and should probably only be enabled with an option
  • As above, but using --source-dir= or similar option
  • Allow attachements to be imported with file:// URLs.
    • Currently, file:// URLs result in errors like:
      Failed to import Media “media_name”: Request failed due to an error:
      A valid URL was not provided. (http_request_failed)<br />
      
      • The error remains when the http_request_host_is_external is updated to be __return_true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions