Images keep reoptimizing when accessing a product page
-
Hello,
I’m not sure how or why, but it seems like the product images keep re-optimizing each time a product page is accessed before displaying them, which obviously slows the page to a crawl.
This is what I get from the slow log which made me think that’s what’s going on:
script_filename = /index.php [0x00007f6f9ec17cb0] curl_exec() /wp-includes/Requests/Transport/cURL.php:162 [0x00007f6f9ec17820] request() /wp-includes/class-requests.php:379 [0x00007f6f9ec17710] request() /wp-includes/class-http.php:370 [0x00007f6f9ec17570] request() /wp-includes/class-http.php:589 [0x00007f6f9ec174b0] post() /wp-includes/http.php:91 [0x00007f6f9ec17400] wp_safe_remote_post() /wp-content/plugins/optimus/inc/optimus_request.class.php:470 [0x00007f6f9ec172f0] _do_api_request() /wp-content/plugins/optimus/inc/optimus_request.class.php:389 [0x00007f6f9ec16fa0] _do_image_action() /wp-content/plugins/optimus/inc/optimus_request.class.php:318 [0x00007f6f9ec16350] optimize_upload_images() /wp-includes/class-wp-hook.php:286 [0x00007f6f9ec16260] apply_filters() /wp-includes/plugin.php:203 [0x00007f6f9ec16170] apply_filters() /wp-admin/includes/image.php:293 [0x00007f6f9ec15f50] wp_generate_attachment_metadata() /wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php:354 [0x00007f6f9ec15dd0] resize_and_return_image() /wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php:228 [0x00007f6f9ec15ca0] maybe_resize_image() /wp-includes/class-wp-hook.php:286 [0x00007f6f9ec15bb0] apply_filters() /wp-includes/plugin.php:203 [0x00007f6f9ec15aa0] apply_filters() /wp-includes/media.php:851 [0x00007f6f9ec15970] wp_get_attachment_image_src() /wp-content/themes/atelier-child/woocommerce/single-product/product-thumbnails.php:31
Any idea what is going on, or how to stop it ?
I’m not sure what triggers this process or why. The only thing I can think of is that this only happens for products with images imported from external urls with allimport plugin.
Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Images keep reoptimizing when accessing a product page’ is closed to new replies.