Archive for January, 2008
Reducing Badwidth Usage for Your WordPress Site
Posted by: | CommentsOkay, so this might not come in handy for many people whose sites don’t receive a huge amount of traffic, but I think it’s a great idea to keep a handle on bandwidth usage –not to mention helping your site to load faster!
Take a look at this handy tutorial from Lonewolf-Online: Reduce WordPress Bandwidth Usage. It’s a solid walkthrough of how to find out which files are bogging down your server, as well as how to successfully compress your files. Very nice tutorial.
From file compression to caching and cutting down on database calls, stay tuned for a series of upcoming articles devoted to optimizing WordPress for best performance.
Creating a Custom Database Error Page for WordPress
Posted by: | CommentsIn WordPress 2.3.2 you can now define a custom database error page. In addition to securing WordPress 2.3.2 by subduing many of the database error messages (thus divulging something about the site’s database structure) you can make it where WordPress will always display a custom error message when any database error occurs.
In the past, even ‘cannot connect to database’ errors have displayed brief bits of info relating to the structure of your site. By adding a custom database error page you can eliminate these being shown to visitors altogether.
- Simply create a page with your custom database error message. You can use HTML or whatever you want, but a simple text message works just fine. Something like “I’m sorry, but you seem to have encountered a database error. Please check back later or notify the webmaster”
- Save your file as ‘db-error.php’. Even if you’re using a text editor you can save the file with a PHP extension. In Windows notepad, for example, you would select ‘all files’ rather than ‘text’) and type in ‘db-error.php’.
- Upload your new custom database error file to wp-content/db-error.php of your site.
Congratulations! You’ve successfully created your own custom database error page. This file will be displayed whenever your site has trouble connecting to the database server.
WordPress 2.3.2 -Another Update?!
Posted by: | CommentsWhat’s all the hype about WordPress 2.3.2? Mainly, it fixes a few security holes that most people running WordPress really don’t need to worry about.
Don’t get me wrong, it’s usually worth updating WordPress when a new version comes out (I mean you’re going to have to eventually anyway, right?). But with the swamping of new versions over the last couple months I’d say not to worry about updating until it’s convenient to do so.
So what does WordPress 2.3.2 have to offer? They fixed an exploitation by which those in the know could access your database to see things like posts in ‘draft’ status and overall database structure.
Along with tightening up security in terms of error messages that in the past divulged database structure information, it is anticipated that this move will also result in fewer database errors being displayed (this is a good thing because many db errors did not affect functionality but only cluttered up the screen).
