Support » Plugin: Optimize Images Resizing » Existing blog, big media library

  • Resolved CharleyBoy


    I have a blog with close to 4000 unique images. I have about 500k to 1000k pv/month. I am concerned that initially turning on this plugin with stress my server a lot since every image on every page visitors load (only for the first page load, yes) will process the images. Initially turning on this plugin, if I have 200 visitors live, it would mean that 200 to 300 pictures could try to process at the same time. How is that handled? Is there a way to “force” the plugin to process all existing images instead of on demand? Is this plugin compatible with a nginx server (so no .htaccess)?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author OriginalEXE



    that is a valid concern. Unfortunately there is no built in way to force the processing of the images. The problem is that in order to do that, you have to actually trigger a visit on all of your urls, since there is no programmatic way to determine which page will need which images sizes. You could do it by cloning your site to a staging area, activating the plugin and cleaning up, and then using some tool or script to trigger a visit on each of your post/page. Once that’s done, you restore it to the live site. Now that might be more complicated if you update your site with the new content very often, or if your visitors are content creators as well.

    As for the nginx compatibility, I have not tested it, but I don’t see a reason why it wouldn’t work. The plugin doesn’t rely on some clever url rewrites or something like that, it hooks into internal WP action that gets called each time the image is requested, and does the work there, so server setup should not matter.

    P.S. Regarding your concern, another thing you could do is activating the plugin and not cleaning up the existing media library, and only letting the plugin handle future uploads. The only problem is that your currently uploaded images won’t be cleaned up so you would only see benefits with your future uploads. Not really a solution to your problem but just thought it’s worth mentioning.

    ok, thanks for that very thorough answer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Existing blog, big media library’ is closed to new replies.