• Resolved Pankaj Agrawal

    (@liveaspankaj)


    When debugging with Query Monitor. I see AST making a huge number of duplicate queries on the orders list page.

    Requests like these are made 2-3 times for every row on the Order list page:

    $results = $wpdb->get_row( $wpdb->prepare( 'SELECT * FROM %1s WHERE ts_slug = %s', $this->table, $tracking_provider ) );

    For one tracking provider, this information can be cached in a global variable. And reused on the same request if the next row also has same provider.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicate Queries’ is closed to new replies.