2 Simple WordPress Blog Optimization Tips and Tricks

Categories: Site Optimization Tips
2 Simple WordPress Blog Optimization Tips and Tricks
I have been pretty busy with the WordPress plugin development lately, so didn't get a chance to write any posts for a few weeks. I think it's about time I share a simple but effective website performance improvement trick with the readers of this site that I have been using on all my sites. If you haven't read the WordPress site optimization tips and tricks already then you should read that first. This trick involves changing some of the dynamic wordpress queries to static ones which in turn reduces the number of database queries and improves site performance. This does require a little bit of PHP knowledge but it's really basic stuff. In your WordPress theme's header and footer you will see many statements similar to the following: bloginfo('home') This queries WordPress for the home URL of your blog (eg. http://www.your-site.com). Now, how often do you think your home URL is going to change? Most likely never! So why not replace it with the static information which is "http://www.your-site.com" and make one less database query? Saving one database query may not sound very convincing but you probably have many statements like the following that can also be replaced: bloginfo('html_type') bloginfo('charset') bloginfo('name') bloginfo('version') bloginfo('stylesheet_url') bloginfo('rss2_url') bloginfo('template_directory') bloginfo('home') Now multiply that by every page load per ...

Welcome to Tips and Tricks

Tech tips, WordPress plugins, WordPress tweaks and Technical tips to build a better blog.

Featured & Popular Articles

Tips and Tricks Hot Items

wordpress_estore_icon
wordpress membership plugin
WordPress PDF Stamper Plugin
WordPress Affiliate Link Manager Plugin
wordpress_affiliate_plugin_icon