WordPress.org

Ready to get started?Download WordPress

Forums

How do you display the number of database queries? (6 posts)

  1. m8rk
    Member
    Posted 9 years ago #

    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.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Page generated in <?php timer_stop(1); ?> seconds with <?php echo $wpdb->num_queries; ?> database queries<br />

  3. phiali
    Member
    Posted 9 years ago #

    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!

  4. m8rk
    Member
    Posted 9 years ago #

    Excellent! thanks podz! :)

    How do you get 'spam eaten' then phiali??

  5. phiali
    Member
    Posted 9 years ago #

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

    and then inside my index.php file I added

  6. 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.

  • m8rk
    Member
    Posted 9 years ago #

    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??

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.