Archive for the ‘WordPress Related’ Category

WordPress Performance

Tuesday, March 24th, 2009

Just a little nice to have feature on your WordPress site.   You can place the following code in your footer.php to display the number of queries and amount of time taken for the page to load.  This version will only be displayed if the user is logged in due to the if statement.

<?php if (is_user_logged_in()) { ?>
<?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.
<?php } ?>

WordPress and Firefox Beta Bug?

Tuesday, March 17th, 2009

While trying to edit any posting I kept getting redirected after the edit screen appeared.  I thought it might be a problem with the Firefox 3.1 Beta 3 I was using so I tried the stable version (still installed on my laptop) and then…gasp…I tried IE…I know, I know…but it was for testing purposes.

Turns out it’s a FireBug issue.  Installing the newest version seems to have resolved the issue.  A little bit of Google research shows this was an issue before with other releases of FireBug so I guess it came back.

Minor setback for a majorly useful developer tool.  If you do any type of web development or code review you really need to be checking out Firebug at http://getfirebug.com/