• May I know how many db queries will do on wp_nav_menu

    Here an example my theme structure : image

    When I put

    <?php printf(__(‘%d queries. %s seconds.’), get_num_queries(), timer_stop(0, 3)); ?>

    looks like each wp_nav_menu will be 5 queries. So here I have 4 menus so the total is 20 queries

    This is normal?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    I haven’t done the math or checked everything, but that seems pretty close to right to me.

    A normal page generation tends to run between 30 and 80 queries.

    Thread Starter kongkang

    (@kongkang)

    A normal page generation tends to run between 30 and 80 queries.

    Now my theme on main page run 68 queries. 0.786 seconds. So this is a normal range?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    A tad high, but pretty normal if you’re using some heavy plugins.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_nav_menu and db queries’ is closed to new replies.