MerlinWP icon indicating copy to clipboard operation
MerlinWP copied to clipboard

Check for local images first before importing from external URL

Open JiveDig opened this issue 7 years ago • 1 comments

This one is a bit crazy, but would be awesome for import speed. What if we could define a 'local_image_dir' that we could store the demo images inside our theme/plugin/merlin? That way, when the content (xml) importer goes to grab an image, it first checks if file_exists() in our image directory... if it does, grab it from there and save all that time/bandwidth. I tried doing this by editing my xml file but couldn't get it to work.

I'm using merlin in a "demo importer" plugin so it wouldn't be a huge deal to have all the images in the plugin. It would take the full demo import from 3-5min (current) to like 15-45 seconds depending how many images.

Thoughts?

JiveDig avatar Oct 05 '18 02:10 JiveDig

A really neat idea. I'm not sure how it'd work — but it would increase speeds quite a bit. 👍

richtabor avatar Oct 05 '18 23:10 richtabor