Digging Into WordPress recently put up an interesting article, WordPress Configuration Tricks, that covers a bunch of useful features hidden in that little-accessed part of WordPress: The wp-config.php file.
[What] many users don’t know is that the
wp-config.phpfile may be used to specify a wide variety of configurational settings, enabling you to improve the functionality, performance, and security of your WordPress-powered site.
Did you know you can set several configuration options, usually stored in the database, as constants in the wp-config file? It saves a bit of time and processing power, as the data doesn’t have to be pulled from the database.
define('WP_HOME', 'http://diggingintowordpress.com'); define('WP_SITEURL', 'http://diggingintowordpress.com'); define('TEMPLATEPATH', '/absolute/path/to/wp-content/themes/active-theme'); define('STYLESHEETPATH', '/absolute/path/to/wp-content/themes/active-theme');
You can also disable post revisions, set the maximum number of revisions to store, or change the autosave interval for the post editor. You can even set up error logs and increase the ammount of memory allotted to PHP.