• Resolved xlanalyticsinc

    (@xlanalyticsinc)


    Hi,

    We would appreciate clarification on the fix for image regeneration and resize function in woocommerce 3.3.2.

    The earlier Woo versions (starting 3.3), users have faced problems of CPU outage by switching to default themes such as Twenty Seventeen or Storefront, and if the images on the website are hosted elsewhere e.g. Amazon server. The code in class-wc-regenerate-images.php file tries to regenerate all the thumbnails leading to a cron job running continuously and account being limited by host.

    The temporary fix has been discussed here and here without any authorised support from WooCommerce team.

    The following code temporarily disables the image regeneration and resize functionality:

    add_filter( 'woocommerce_background_image_regeneration', '__return_false' );
    add_filter( 'woocommerce_resize_images', '__return_false' );

    However, has the problem fixed in Woo 3.3.2 version?

    Thanks in advance for any clarification from WooCommerce development team.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Please see here https://github.com/woocommerce/woocommerce/wiki/Thumbnail-Image-Regeneration-in-3.3-

    “High CPU” is somewhat expected as it’s generating images, but this should be the case with any image regeneration solution. Jetpack Photon is a good solution if you are on a shared host with limits on CPU usage.

    Thread Starter xlanalyticsinc

    (@xlanalyticsinc)

    Hi Mike,

    Thank you for your timely help and you are right, we are on a shared host with limits on CPU usage.

    We only use images on our blog posts which are externally hosted, and do not use product images (or thumbnails), and therefore do not need the image regeneration and sizes functionality. We do not want to install jetpack as an additional resource intensive plugin either, as some of the common tasks are already being managed by installed plugins. In this case, are the above code snippets sufficient?

    Once we hear from you, would close the ticket as resolved.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    The image regen is for your catalog thumbnails mainly. I think you will be using those? You can disable it yes, you’ll just have to run it manually in future if needed.

    Thread Starter xlanalyticsinc

    (@xlanalyticsinc)

    Hi Mike,

    We are not using catalog thumbnails either. Thank you for your reply.
    I’m closing this tread as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Image regeneration and resize in WC 3.3.2’ is closed to new replies.