• Hi,

    Great plugin. I recently changed my theme and so I need to resize thumbnails to suit. This plugin is doing this perfectly. However, I’ve never been able to do all my images.

    My site is pretty big with around 30,000 images/5000 posts, and every time I run the program something ends up happening – my computer goes into sleep mode or automatically updates, which means I have to start all over again each time.

    So far the longest I’ve ran the program without interruption is about 30 hours. I’m guessing it will take around 60 hours to do the whole lot.

    Is there a way I can run the program from the oldest images first? That way I should be able to come back to where it always gets up to, if that makes sense.

    My site is 3 years old, so far I know it gets up to 2013 images. If I could run the plugin only for 2011 and 2012 images that would be great too, if it’s possible?

    Appreciate any help.

    https://www.ads-software.com/plugins/force-regenerate-thumbnails/

Viewing 1 replies (of 1 total)
  • Hi,

    first launch Itunes then your computer won’t go into sleep mode ;o)

    Or edit force-regenerate-thumbnails.php on the plugin directory of your wordpress
    ../wp-content/plugins/force-regenerate-thumbnails

    Line 244 copy/past this and change or just change in the SELECT request DESC by ASC

    if (!$images = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE post_type = 'attachment' AND post_mime_type LIKE 'image/%' ORDER BY ID ASC")) {
    					echo '	<p>' . sprintf(__("Unable to find any images. Are you sure <a href='%s'>some exist</a>?", 'force-regenerate-thumbnails'), admin_url('upload.php?post_mime_type=image')) . "</p></div>";
    					return;
    				}

    If you want to select a special month add this in the SELECT request

    AND year(post_date) = YYYY AND month(post_date) = MM

    Where (samples) YYYY=2014 and MM=10

Viewing 1 replies (of 1 total)
  • The topic ‘Start regenerate from oldest first’ is closed to new replies.