Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21867

    Hi,

    The render of blog archive pages was super slow, since almost 230 SQL queries with facebook and twitter things were slowing everything. I just have the normal 10 posts showing on archive pages.

    I commented out these lines which solved the problem, which took the number of database queries down to 58 on blog archive pages, so these pages are loading quickly now.

    Before:

    TOTAL QUERIES:

    298

    TOTAL QUERY TIME:

    755.5 ms

    After:

    TOTAL QUERIES:

    58

    TOTAL QUERY TIME:

    100.2 ms

    So these functions are super inefficient, I really think you should either rewrite them, or drop them from the next version:

    echo '<div class="like-count minor-meta">';

    echo avia_facebook_like($id);

    echo '</div><span class="text-sep like-count-sep">/</span>';

    echo '<span class="tweets-count minor-meta">';

    echo avia_retweet($id);

    echo '</span><span class="text-sep tweets-count-sep">/</span>';

    Best,

    Tom

    #113397

    Hi!

    Thanks for the hint – I marked this thread for Kriesi.

    Best regards,

    Peter

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Slow blog archive page’ is closed to new replies.