Support » Plugin: Image Regenerate & Select Crop » Run large jobs via WP cron in batches

  • Resolved Gal Baras

    (@galbaras)


    Hi Iulia,

    I’m regenerating lots of thumbnails on a site now and this requires that my browser remain connected to the site, but my computer goes to sleep if I’m not there long enough, and this setup is just too prone to errors.

    Can you please make it so that bulk regeneration creates jobs of, say, 50 or 100 images, and then queues the respective tasks in the background? After all, thumbnail regeneration isn’t urgent, and it’s a long job that nobody wants to wait for.

    Ideally, the batch size will be configurable, to cater for different server environments and different cron frequencies.

    Also, there should be a way to check the progress of these job and see which ones have completed.

    Thank you,
    Gal

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

    (@iulia-cazan)

    Hi Gal,

    The wp-cli commands are what you are looking for, even in the plugin documentation this is specified.

    Regards,
    Iulia

    Thread Starter Gal Baras

    (@galbaras)

    Shared server. No WP-CLI 🙁

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    I see. Then yes, having some background task doing the job would be recommended. However, if your application does not offload the WP cron to the server cron, the performance on your site will be affected while running such a process. I will consider adding a feature like that in the next version.

    Thread Starter Gal Baras

    (@galbaras)

    Good point, but with small batches (hence a setting for this is best), this shouldn’t matter too much. Also, I’ve been assured by prominent WP core team members that WP Cron does not slow down page loads, although it contributes to the overall server load.

    Personally, I run WP Cron from a real cron job on all of my sites, and will pick a suitable batch size to suit my server environment.

    While we’re at it, it’ll be super awesome to have a clearing/regeneration log that can be viewed later. Right now, there’s a box with little information that keeps disappearing, and if I’ve blinked, I might have missed something, and will never know.

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    The option for running the bulk actions with cron tasks is implemented in the new version. Please check that out.

    Regards,
    Iulia

    Thread Starter Gal Baras

    (@galbaras)

    I’ve scheduled a cleanup job, but how do I track it and where can I check errors?

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    You can see the errors in the bulk actions log, but you have to enable the debug tab (it’s a new setting).

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.