• I have a store that has over 2000 products. Accordingly, I was running some tests after after a lot of digging, I have figured out that it is this line:

    $max_related_posts = absint( $wpdb->get_var( implode( ' ', apply_filters( 'woocommerce_product_max_related_posts_query', $max_related_posts_query, $this->id ) ) ) );

    Within the get_related function of WC Product that is adding nearly 1-2 seconds to page load time.

    As I do not know what this does, or is used for, if anyone has any information or tips on how I can go about making this a lot more efficient, please let me know.

    This is on a live site, so it is a pretty urgent thing.

    Thanks.

    https://www.ads-software.com/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘URGENT: max_related_posts_query – Extremely slow, please help’ is closed to new replies.