Put your WordPress on Steroids

Saturday, March 15th, 2008 | Tech Corner with 14 Comments

Is your WordPress theme loading slowly? If your web site is taking more than 5 seconds or even 10 seconds to load this could be an issue. Your visitors may just leave your site because of this. You can speed up your WordPress load time like it was on steroids!

Your header and footer templates perform PHP calls to your database in order to display your pages and content accordingly. This can have a lot of stress and load issues that can cause your page to load slow. You can reduce these PHP calls to your database by creating static URI’s.

Header Template:

Unnecessary PHP calls to your database that can be change to a static URI or removed.

<html xmlns=”http://www.w3.org/1999/xhtml” <?php if (wp_version()==’21′) language_attributes(); ?>><head profile=”http://gmpg.org/xfn/11″>

<meta http-equiv=”Content-Type” content=”<?php bloginfo(’html_type’); ?>; charset=<?php bloginfo(’charset’); ?>” />

<title><?php if (is_single() || is_page() || is_archive()) { wp_title(”,true); } else { bloginfo(’name’); echo(’ — ‘); bloginfo(’description’); } ?></title>

<meta name=”generator” content=”WordPress <?php bloginfo(’version’); ?>” /> <!– leave this for stats –>

<meta name=”description” content=”"/>

<meta name=”keywords” content=”"/>

<link rel=”stylesheet” href=”<?php bloginfo(’stylesheet_url’); ?>” type=”text/css” media=”screen” />

<link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(’name’); ?> RSS Feed” href=”<?php bloginfo(’rss2_url’); ?>” />

<link rel=”pingback” href=”<?php bloginfo(’pingback_url’); ?>” />

<link rel=”Shortcut Icon” href=”<?php bloginfo(’stylesheet_directory’);?>/images/favicon-adstheme.ico” type=”image/x-icon” />

<?php wp_head(); ?>

</head>

There are 8 PHP calls in the Header template that can be changed to a static URI or removed. This will reduce load times significantly.

A clean and faster Header Template:

<html xmlns=”http://www.w3.org/1999/xhtml”>

<head>

<title>Your Title Here</title>

<meta http-equiv=”Content-Type” content=”<?php bloginfo(’html_type’); ?>; charset=<?php bloginfo(’charset’); ?>” />

<meta name=”generator” content=”WordPress 2.3.3″ />

<!– leave this for stats –>

<meta name=”description” content=”Your description here” />

<meta name=”keywords” content=”Your keywords here” />

<link rel=”stylesheet” href=”http://www.yoursite.com/wordpress/wp-content/themes/yourtheme/style.css” type=”text/css” media=”screen” />

<link rel=”alternate” type=”application/rss+xml” title=”Your Blog Name”> RSS Feed” href=”http://www.yoursite.com/?feed=rss2″ />

<link rel=”pingback” href=”<?php bloginfo(’pingback_url’); ?>” />

<link rel=”Shortcut Icon” href=”http://www.yoursite.com/images/favicon.ico” type=”image/x-icon” />
</head>

By changing or removing these 8 PHP calls to your database you will improve your web site load time by up to 50%!

You can also download WP Super Cache. It’s a very fast caching module for WordPress. It generates html files that are served directly by Apache without processing comparatively heavy PHP scripts. By using this plug-in you will speed up your WordPress blog significantly.

Need help?

I provide consulting services for a fee of only $5 using PayPal to bosocony@yahoo.com. I will clean your header template, install WP Super Cache, Test your WordPress theme and provide a screen shot of your load time before and after. Don’t have PayPal? No problem, send 1000 EC’s to my account.

[del.icio.us] [Digg] [Google] [Reddit] [StumbleUpon] [Technorati] [Email]

I lost my virginity

Tuesday, January 8th, 2008 | Odd Stuff with No Comments »

Yep, it’s a big day, and a new beginning for me. It all started out when I was just searching for that special kinda of thing, a niche. I searched and searched and than it appeared! I said I have to get some of that. So I moved in slowly, sliding my hand across the pad as I hit the spot and than pressed so slowly until it opened!

I downloaded WordPress and began my first blog. Yes a new and wonderful way to express, share and get comments.

I have written many articles, but mostly shocking and bizarre. I like exposing the truth from what I see and hear and expressing it openly. I hope to excite the masses and create an audience of subscribers.

Peace!

[del.icio.us] [Digg] [Google] [Reddit] [StumbleUpon] [Technorati] [Email]