Support » Plugin: Optimize Images Resizing » Resume button

  • Resolved notificationbox

    (@notificationbox)


    Hi there,

    I was wondering if there was a way to resume or use the command line to run the plugin. There are approx 400k images to cleanup and I do understand that it will get faster after each run, but can’t get it past 40k before I need to rerun the cleanup.

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

    (@originalexe)

    Hello,

    the plugin supports WP-CLI so you can try your luck with that.

    There is no resume functionality currently, though that is a great idea. The plugin could use some love anyway as I did not update it for quite some time. I will do my best to release an update this week and include the resume functionality as well.

    By the way, did you check the error logs, is it maybe getting stuck on one specific image?

    Hi thanks for the reply. Could you please let me know how I can use WP-CLI with your plugin.

    I think I have a bad internet connection so it drops out.

    Plugin Author OriginalEXE

    (@originalexe)

    Hi,

    you can check this website for the documentation on how to use WP-CLI: http://wp-cli.org/

    By the way, I just released a new update that adds support for resuming the removal, so please test it and let me know how it goes.

    Thanks!

    Hi thanks.

    Do I need to select Keep a record of removed images sizes (not recommended for huge media libraries)? in order to have the resume function?

    With the CLI. Does the cleanup function just removes images with filename-150×150.jpg

    I can probably write a little batch file so that it just removes all images that contain -150×150.jpg etc.

    Plugin Author OriginalEXE

    (@originalexe)

    Hi,

    1.) You don’t need to select that checkbox in order to have support for resuming the removal, the resuming functionality will work regardless. How it works is it saves the current progress in the database, and removes that progress once the cleanup is finished. If the cleanup does not reach it’s end, the progress record won’t be deleted and you will get an option to resume it on next visit to the admin screen.

    About the CLI, I have not deeply tested it since I don’t use WP_CLI myself (the support for it was added by another contributor), but it should remove all images that the cleanup through admin interface does.

    Your 150×150 images won’t be removed however you run the cleanup process, you can read more about why that is in the plugin description (basically, that size is used in the media library).

    Hi there,

    Thank for that. The resume function works well now.

    I’ve noticed that after the cleanup it has removed some of the images used for the Woocommerce category page.

    I’m using a caching plugin, do I need to remove all cached files and then open up the page to see if it get’s regenerated?

    Plugin Author OriginalEXE

    (@originalexe)

    Hi,

    yes, ideally after installing this plugin you should purge your pages cache, and the plugin should create the image sizes the website needs on the first request.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Resume button’ is closed to new replies.