Very Slow Home Page Load Times - by marcelj

This topic has 2 replies, 2 voices, and was last updated 7 years, 7 months ago ago by Olga Barlow

  • Avatar: marcelj
    marcelj
    Participant
    September 23, 2016 at 16:56

    When using your theme XStore Woocommerce is creating a long string of blocks of text flying by that turns out to be from database queries.

    A lot of these queries have large output and are related to the wp_posts table, so I searched through the output and found that a single page load of the main page performs 564 queries against the wp_posts table. There’s too many to paste in here.

    A lot of the queries seem identical to each other, making it seem something is doing selects with large output and then narrowing it down after, but it definitely accounts for the very long pause when loading the page.

    The last php file called before a huge chunk of queries that look like “SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_parent = 4620 AND wp_posts.post_type = ‘product’ AND ((wp_posts.post_status <> ‘trash’ AND
    wp_posts.post_status <> ‘auto-draft’)) ORDER BY wp_posts.post_date DESC “, 234”

    is

    /wp-content/plugins/woocommerce/includes/class-wc-product-simple.php

    So it’s something woocommerce is doing, however if I switch to any other theme, the page loads just fine.

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    September 24, 2016 at 07:46

    Hello,

    When we test pages with equal content with default theme we see almost the same results. Please,
    Read these posts, they may help you to speed up your site
    https://www.8theme.com/blog/5-foolproof-ways-to-speed-up-your-wordpress-website/
    https://www.8theme.com/blog/how-to-speed-up-your-wordpress-website/
    https://www.8theme.com/blog/main-methods-for-speeding-up-wordpress-themes/

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.