Viewing 9 replies - 1 through 9 (of 9 total)
  • no, the code is too simple:

    <?php echo $wpdb->num_queries; ?>

    Thread Starter Marcomail

    (@marcomail)

    264 queries ?? Is normal ?

    nope, thats pretty damn high if you ask me.

    I use 36 different plugins. I use anywhere from 54 to 73 queries on any one of my pages. Im guessing your page load times suck.

    Thread Starter Marcomail

    (@marcomail)

    i use this code to show 3 loop in the index.php:

    <?php $wp_query->query_vars["cat"] = 11; ?>
    <?php $wp_query->query_vars["showposts"] = 3; ?>
    <?php $wp_query->get_posts(); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    if i delete the 3 loop i have 37 queries…

    Thread Starter Marcomail

    (@marcomail)

    the problem is this code:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class="postcontent" id="post-<?php the_ID(); ?>">
    <h1><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1>

    <div class="storycontentgallery">
    <?php the_content('Read more...'); ?>
    </div>

    <!--
    <?php trackback_rdf(); ?>
    -->

    <br />
    <br />

    <?php comments_template(); // Get wp-comments.php template ?>

    </div>

    <?php endwhile; else: ?>
    <h2 class="center">Not Found</h2>
    <p class="center"><?php _e("Sorry, but you are looking for something that isn't here."); ?></p>
    <?php endif; ?>

    if i delete this i have 250 queries less

    Thread Starter Marcomail

    (@marcomail)

    i’ve found the problem!! This plugin fuck the queries:

    WP Automatic Reference

    Thread Starter Marcomail

    (@marcomail)

    Now i have 58 queries for the homepage, 40 for the rest

    i think anything less than 50 is ok

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘query counter’ is closed to new replies.