• Currently at the bottom of these pages on wordpress.org there is displayed the page spawn time and the number of database queries made. How do you achieve this? I did a search but so measly are my searching skill that I was unable to find an answer.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Page generated in <?php timer_stop(1); ?> seconds with <?php echo $wpdb->num_queries; ?> database queries<br />

    Thanks for that podz (and to m8rk for asking the question)!

    Just got that and “total spam eaten” added to my site now @ http://www.0gravity.co.uk/

    Stats galore!

    Thread Starter m8rk

    (@m8rk)

    Excellent! thanks podz! 🙂

    How do you get ‘spam eaten’ then phiali??

    I installed the excellent Spam Karma pluging from http://unknowngenius.com/blog/wordpress/spam-karma/

    and then inside my index.php file I added

    • Spam Eaten: <?php if (function_exists(‘spamk_stats’)) spamk_stats(false, true); ?>

      That plugin is great – I was getting hit by quite a bit of comment spam and so far this seems to have stopped quite a bit of it.

    Thread Starter m8rk

    (@m8rk)

    Thanks phiali!

    I use kittens spaminator – working wonderfully at the moment – I was notified of 20 deletions this morning 🙂

    hmmm – wonder what the call is for spaminator stats??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How do you display the number of database queries?’ is closed to new replies.