Title: [Plugin: Cache Images] Command line version?
Last modified: August 19, 2016

---

# [Plugin: Cache Images] Command line version?

 *  [David Radovanovic](https://wordpress.org/support/users/dpaule/)
 * (@dpaule)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/)
 * Here are some scan results:
 * # 1.bp.blogspot.com (results: 287)
    # 4.bp.blogspot.com (results: 282) # 3.bp.
   blogspot.com (results: 235) # 1.bp.blogspot.com (results: 287) # 4.bp.blogspot.
   com (results: 282) # 3.bp.blogspot.com (results: 235)
 * issue is that it is very slow going…
    Anyway to do this via command-line? Also,
   if I successfully complete one of the line results, and scan again, it finds 
   the already successfully completed images as if they were not cached properly.
 * Either way, great plugin!

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/page/2/?output_format=md)

 *  Plugin Author [Milan Dinić](https://wordpress.org/support/users/dimadin/)
 * (@dimadin)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788006)
 * Speed of caching depends on your server. For every image, WordPress needs to 
   sideload image and generate thumbnails which number varies depending on image’s
   size and setup. It also needs to read image’s metadata.
 * Maybe something can be coded for use in command line but I don’t recommend that
   since time you waste on coding is longer then one which needs for current usage.
 * There is a problem with some images from Blogger, see [here](http://wordpress.org/support/topic/plugin-cache-images-some-images-not-caching?replies=5).
 *  Thread Starter [David Radovanovic](https://wordpress.org/support/users/dpaule/)
 * (@dpaule)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788273)
 * Thanks for fast reply. What would be involved to fix the odd name import problem
   which prevents successful imports of images, i.e. [http://1.bp.blogspot.com/_Udy7KQ7J3aU/R-O9vB_Lr6I/AAAAAAAAAII/wz4Qs3iOND4/s320/farm](http://1.bp.blogspot.com/_Udy7KQ7J3aU/R-O9vB_Lr6I/AAAAAAAAAII/wz4Qs3iOND4/s320/farm)
   pix 186.jpg
 * The import process never seems to complete these:
 * # bp3.blogger.com (results: 4)
    # bp2.blogger.com (results: 4) # bp0.blogger.
   com (results: 5) # 1.bp.blogspot.com (results: 88) # 4.bp.blogspot.com (results:
   238) # 3.bp.blogspot.com (results: 75)
 * no matter how many times I try.
 * Thanks again!
 *  [mahjong](https://wordpress.org/support/users/mahjong/)
 * (@mahjong)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788287)
 * Hi!
 * Install hotlink image cacher. Park a domain on your current domain. Change to
   the parked domain.
    Example: you have yourdomain.com and you change it to yourdomain.
   co.cc Use hotlinked image cacher to cache blogspot images. After cached, change
   back to your old domain. Use cache images, and cache images from your other, 
   parked domain. I used this little trick with those images.
 *  Thread Starter [David Radovanovic](https://wordpress.org/support/users/dpaule/)
 * (@dpaule)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788288)
 * Mahjong, cool. To clarify: register new domain with different extension, i.e.
   chefsconsortium.com –> chefsconsortium.us? Would subdomain work, i.e. images.
   chefsconsortium.com?
 *  Thread Starter [David Radovanovic](https://wordpress.org/support/users/dpaule/)
 * (@dpaule)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788290)
 * Here is my interpretation:
 * 1. Installed HLIC.
    1. Register *.us version of my site’s domain at GoDaddy. 
   2. Logged onto my web host’s cpanel. 3. Parked new *.us domain via cpanel. 4.
   Created redirection to original *.com site. 5. Logged into GoDaddy and changed
   A Record of *.us to my same IP as my *.com. 6. Waited for A Record to propagate;
   5 minutes. 7. Changes my WordPress site (via wp-admin) from *.com to *.us. 8.
   Imported images via HLIC. 9. Changed back to *.com, SEE: 7 above. 10. Used Cache
   Images to import from *.us domain.
 *  Thread Starter [David Radovanovic](https://wordpress.org/support/users/dpaule/)
 * (@dpaule)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788291)
 * Well… I did something wrong. Had to change the url back to *.com via phpMyAdmin.
   Any help would be much appreciated. Thanks.
 *  Plugin Author [Milan Dinić](https://wordpress.org/support/users/dimadin/)
 * (@dimadin)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788295)
 * Guys, is it really necessary to buy a new domain just for this? Wasn’t better
   to pay with that money to developers?
 * OK, now that I see that this is extremely important issue, I promise I will look
   for a solution.
 *  Thread Starter [David Radovanovic](https://wordpress.org/support/users/dpaule/)
 * (@dpaule)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788296)
 * Sorry for the obvious. Pay with money to developers: of course. Please give me
   a price.
 *  Plugin Author [Milan Dinić](https://wordpress.org/support/users/dimadin/)
 * (@dimadin)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788301)
 * Please try [development version](http://downloads.wordpress.org/plugin/cache-images.zip),
   it tries to fix issue with Blogger’s URLs.
 * > Sorry for the obvious. Pay with money to developers: of course. Please give
   > me a price.
 * I don’t ask you to pay me, I just said that if you already pay because of this
   issue, it’s better to pay to plugin’s developers, or to someone other who can
   fix issue for everyone. 😉
 *  Thread Starter [David Radovanovic](https://wordpress.org/support/users/dpaule/)
 * (@dpaule)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788302)
 * How about you?
 *  Plugin Author [Milan Dinić](https://wordpress.org/support/users/dimadin/)
 * (@dimadin)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788304)
 * Have you tried development version I mentioned above?
 *  [mahjong](https://wordpress.org/support/users/mahjong/)
 * (@mahjong)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788305)
 * Dpaule: yes, subdomain should work, or any domain from freedns.afraid.org or 
   co.cc. You just park it on your installation (do not redirect it!), then use 
   HLIC which will cache blogspot images (i’m not sure, because my images were not
   from blogspot, but still not cached with this plugin) in your wpcontent/uploads/
   hlic dir, or whatever. But before that, you have to change the domain to the 
   parked domain of yours (of course after propagation, so you can open wp-admin
   with that domain too.) Cache the blogspot images with HLIC (beware, do not cache
   it from your other parked domain! – it will download every image and change their
   location to yourdomainusedwithHLIC/wpcontent/uploads/hlic)
    Now change back to
   the main domain, login to wp-admin, and use cache images to cache from the other
   domain of yours (so basically you cache from local domain, and hlic renamed files
   so you will not have any problem with characters anymore)
 * maybe it seems difficult, but if you installed both plugins and have a main and
   a parked domain too, then it is just about changing the wordpress url in wp admin
   twice.
    change the domain ->use HLIC ->change back -> use cache images Thats 
   it. I think your problem was that you were not waiting for the domain to point
   to your host, OR the redirection – you don’t have to redirect any of the domains.
   You have to be able to use your wordpress site from the parked domain of yours
   too.
 *  Plugin Author [Milan Dinić](https://wordpress.org/support/users/dimadin/)
 * (@dimadin)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788316)
 * dpaule, mahjong: have you tried [development version](http://downloads.wordpress.org/plugin/cache-images.zip),
   I pushed some code that should now cache all images from Blogger?
 * Please try it so that I know is this fixed since I’ll release a new version with
   some bug fixes today.
 *  Thread Starter [David Radovanovic](https://wordpress.org/support/users/dpaule/)
 * (@dpaule)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788317)
 * Wow… seems like it’s running fine. Thanks!! I’ll let you know if there are any
   problems after it finishes up caching the rest of my 300+ images.
 *  Thread Starter [David Radovanovic](https://wordpress.org/support/users/dpaule/)
 * (@dpaule)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/#post-1788318)
 * Ooops, take that back: *.bmp images don’t seem to get imported. BTW, these bmp
   images are from a blogger site.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/page/2/?output_format=md)

The topic ‘[Plugin: Cache Images] Command line version?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cache-images.svg)
 * [Cache Images](https://wordpress.org/plugins/cache-images/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-images/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-images/reviews/)

 * 17 replies
 * 3 participants
 * Last reply from: [Milan Dinić](https://wordpress.org/support/users/dimadin/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-cache-images-command-line-version/page/2/#post-1788320)
 * Status: not resolved