pbiron / wordpress-importer-v2

In-development rewrite of the WordPress (WXR) Importer
Other
11 stars 5 forks source link

Ajax Process Repeated Read XML File #18

Open ankit9963 opened 6 years ago

ankit9963 commented 6 years ago

Hello Pbiron,

Thanks for the plugin, it works well compared to the default WP import plugin.

We recently used this plugin for importing large Media from one site to another.

There is One small error in the plugin when we hit start import the plugin by default starts with 50 items from the XML. Suppose the XML file has 500 items to import, the plugin does this error.

On first ajax call it successfully imports 50 items average without any issue. On Second ajax call it first scans the 50 items that are already imported and gives error Media already exist and then parses another 50 items average and imports them to media. On Third ajax call again scans already imported 100 items shows already exists message and them imports items between 51 - 150.

So there is error in every ajax call the code misses out already processed items, if this is implemented the plugin will work more faster, decreasing excessive looping of already imported post.

Glad if you can look into this issue and fix it, again the plugin is superb thanks for it.

Thanks, Ankit