<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Make Tech Easier &#187; tricks</title>
	<atom:link href="http://maketecheasier.com/tag/tricks/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Fri, 20 Nov 2009 13:39:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Useful WordPress wp-config Tricks That You May Not Know</title>
		<link>http://maketecheasier.com/useful-wordpress-wp-config-tricks-that-you-may-not-know/2009/11/17</link>
		<comments>http://maketecheasier.com/useful-wordpress-wp-config-tricks-that-you-may-not-know/2009/11/17#comments</comments>
		<pubDate>Tue, 17 Nov 2009 13:16:46 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[wp-config]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=8292</guid>
		<description><![CDATA[If you are one of the many who install WordPress via Fantastico, chances are, you won&#8217;t even know the existence of the wp-config file in WordPress. The wp-config.php file is one of the most important files in Wordpress. It holds the keys to your database and also many of the configuration options that you never [...]<p><strong><a href="http://maketecheasier.com/useful-wordpress-wp-config-tricks-that-you-may-not-know/2009/11/17">Useful WordPress wp-config Tricks That You May Not Know</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>



Related posts:<ol><li><a href='http://maketecheasier.com/4-hidden-wordpress-features-that-are-unknown-to-many/2008/08/13' rel='bookmark' title='Permanent Link: 4 Hidden WordPress Features That Are unknown to Many'>4 Hidden WordPress Features That Are unknown to Many</a></li><li><a href='http://maketecheasier.com/clone-and-migrate-wordpress-blog-to-new-server/2008/01/30' rel='bookmark' title='Permanent Link: [Hacking WordPress]: How To Clone And Migrate Your WordPress Blog To New Server'>[Hacking WordPress]: How To Clone And Migrate Your WordPress Blog To New Server</a></li><li><a href='http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17' rel='bookmark' title='Permanent Link: 8 Useful Tricks To Clean Up &#038; Streamline Your Wordpress Database'>8 Useful Tricks To Clean Up &#038; Streamline Your Wordpress Database</a></li><li><a href='http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07' rel='bookmark' title='Permanent Link: The Safe Way to Change your WordPress Database Table Prefix'>The Safe Way to Change your WordPress Database Table Prefix</a></li><li><a href='http://maketecheasier.com/7simple-wordpress-tricks-that-you-thought-you-know/2008/11/10' rel='bookmark' title='Permanent Link: 7 Simple WordPress Tricks That You Thought You Know'>7 Simple WordPress Tricks That You Thought You Know</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><img src="http://images.maketecheasier.com/2009/11/wp-config.png" alt="wp-config" title="wp-config" width="400" height="167" class="alignleft size-full wp-image-8366" />If you are one of the many who install WordPress via Fantastico, chances are, you won&#8217;t even know the existence of the <em>wp-config</em> file in WordPress. The <em>wp-config.php</em> file is one of the most important files in Wordpress. It holds the keys to your database and also many of the configuration options that you never know you can do with WordPress. Here are some tricks that you can get your WordPress to do by editing the wp-config file.</p>
<h3>1. Database settings</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_NAME'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'putyourdbnamehere'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_USER'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'usernamehere'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_PASSWORD'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'yourpasswordhere'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_HOST'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'localhost'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This is the first thing that you need to configure in order for WordPress to work. In most cases, you only need to change the <em>database name</em>, <em>username</em> and <em>password</em>. For the DB_HOST, ‘localhost’ should work most of the times. If not, ask your server administrator for details.</p>
<h3>2. Changing the database charset value</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_CHARSET'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'utf8'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>You won&#8217;t have to change this value 99% of the time. Change this only if you are very sure that your database is using a different <a href="http://en.wikipedia.org/wiki/Category:Character_sets" target="_blank">charset</a>.</p>
<h3>3. Changing the database character set sort order</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_COLLATE'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Once again, change this only if you know what you are doing. If not, leaving it blank is the best option.</p>
<h3>4. Authentication keys</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AUTH_KEY'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'put your unique phrase here'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SECURE_AUTH_KEY'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'put your unique phrase here'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'LOGGED_IN_KEY'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'put your unique phrase here'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'NONCE_KEY'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'put your unique phrase here'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The authentication keys are used to insure better encryption of information stored in the user&#8217;s cookies. Go to <a href="https://api.wordpress.org/secret-key/1.1/" target="_blank">https://api.wordpress.org/secret-key/1.1/</a> to generate a new set of keys and copy/paste them into your wp-config.php file.</p>
<p>If you are using WPMU, you will see three extra sets of authentication keys:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AUTH_SALT'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'put your unique phrase here'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'LOGGED_IN_SALT'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'put your unique phrase here'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SECURE_AUTH_SALT'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'put your unique phrase here'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>5. Table prefix</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$table_prefix</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'wp_'</span><span style="color: #339933;">;</span></pre></div></div>

<p>This <em>$table_prefix</em> settings allow you to change the default <em>wp_</em> prefix before your WordPress installation.</p>
<p><em>Note</em>: If your existing database is already using the default wp_ prefix, changing this value will not change the database value, and it will also cause your site to break. To change your existing table prefix, refer to this <a href="http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07">tutorial</a>.</p>
<h3>6. Language and Language Directory</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WPLANG'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'de_DE'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'LANGDIR'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'mylanguagedirectory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>If you are using a language translation file for your blog, this is where you define the language that you are using and the location of the translation (.mo) files.</p>
<p>Defining of LANGDIR is optional. If it is not specified, WordPress will first look up the <em>wp-content/languages</em> folder, follow by <em>wp-includes/languages</em> for the .mo file.</p>
<h3>7. Defining the Home and site url</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_SITEURL'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'http://your-site-url.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_HOME'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'http://your-site-url.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The SITEURL refers to the actual installation path of WordPress (the file path where the wordpress files are located) while the HOME refers to the URL that you want your visitor to access. There are several uses for this</p>
<ol>
<li>For security measure. Install your wordpress in subfolder and have your visitors access them from the root directory</li>
<li>Migrating to new URl. When you are moving to a new URL, you can easily restore your database by pointing the WP_SITEURL and WP_HOME to the new URL. No editing of the database is required.</li>
</ol>
<h3>8. Revision count</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_POST_REVISIONS'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_POST_REVISIONS'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Change the number of post revisions for WordPress to record. Giving it a value of <em>FALSE</em> (without the quote) will turn post revisions off.</p>
<h3>9. Modify AutoSave Interval</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AUTOSAVE_INTERVAL'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">160</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>When editing a post, WordPress uses Ajax to auto-save revisions to the post as you edit. You may want to increase this setting for longer delays in between auto-saves, or decrease the setting to make sure you never lose changes. The default is 60 seconds.</p>
<h3>10. Define new wp-content location</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'WP_CONTENT_DIR'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DOCUMENT_ROOT'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/blog/wp-content'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'WP_CONTENT_URL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://example/blog/wp-content'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'WP_PLUGIN_DIR'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DOCUMENT_ROOT'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/blog/wp-content/plugins'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'WP_PLUGIN_URL'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://example/blog/wp-content/plugins'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Since WP2.6, you are allowed to move the <em>wp-content</em> folder to other destination and still get it working. You just need to specify the filepath of the new location in the wp-config file.</p>
<h3>11. Access external  configuration files</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>‘FilePathToConfigurationFiles’<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>For developer, if you need to access external configuration file from within WordPress, the place to define it will be within the wp-config.php. This is useful when integrating another software with WordPress. For example, to integrate bbpress with WordPress, add the following</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span><span style="color: #009900;">&#40;</span>‘filepathtoforums<span style="color: #339933;">/</span>bb<span style="color: #339933;">-</span>load<span style="color: #339933;">.</span>php<span style="color: #0000ff;">');</span></pre></div></div>

<p>to access to the bbpress functions in WordPress.</p>
<h3>12. Managing your cookies</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'COOKIE_DOMAIN'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'.yoursite.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'COOKIEPATH'</span><span style="color: #339933;">,</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'|https?://[^/]+|i'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SITECOOKIEPATH'</span><span style="color: #339933;">,</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'|https?://[^/]+|i'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'siteurl'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'ADMIN_COOKIE_PATH'</span><span style="color: #339933;">,</span> SITECOOKIEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'wp-admin'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'PLUGINS_COOKIE_PATH'</span><span style="color: #339933;">,</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'|https?://[^/]+|i'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> WP_PLUGIN_URL<span style="color: #009900;">&#41;</span>  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The cookie definition is meant for sites with unusual domain setup. If you are using sub-domains to serve static content, you won’t want WordPress to track the cookies for the static sites. Simply define the COOKIE_DOMAIN option to limit the domain tracked by the cookie.</p>
<h3>13. Debug</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_DEBUG'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The WP_DEBUG option is especially useful when you are developing a WP site. It allows you to see what went wrong in the code. In actual production site, this option should be turned off (FALSE) as it can affect the performance of the site.</p>
<p>Additionally, if you are planning on modifying some of WordPress&#8217; built-in JavaScript, you can enable the following option:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SCRIPT_DEBUG'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This will allow you to edit the <em>scriptname.dev.js</em> files in the wp-includes/js and wp-admin/js directories.</p>
<h3>14. Configure Error Log</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">@</span><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'log_errors'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'On'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">@</span><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'display_errors'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Off'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">@</span><span style="color: #990000;">ini_set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'error_log'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'/home/example.com/logs/php_error.log'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This option allows you to turn on <em>php error_logging</em> and logs them to a specific file. This is especially useful for those who have no access to the php.ini file.</p>
<h3>15. Increasing memory allocated to PHP</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_MEMORY_LIMIT'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'64M'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary in the event you receive a message such as &#8220;Allowed memory size of xxxxxx bytes exhausted&#8221;.</p>
<h3>16. Cache</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_CACHE'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Activate the WP_CACHE for better site performance.</p>
<h3>17. Custom User and Usermeta Tables</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'CUSTOM_USER_TABLE'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'my_users'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'CUSTOM_USER_META_TABLE'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$table_prefix</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'my_usermeta'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Save the user data to other table instead of the default <em>wp_users</em>.</p>
<h3>18. Save queries for analysis</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SAVEQUERIES'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The SAVEQUERIES option allows you to see all the queries made to the database. You can then analyze those queries and see the function that called it, and how long that query took to execute.</p>
<p>NOTE: This will have a performance impact on your site, so make sure to turn this off when you aren&#8217;t debugging.</p>
<p>To view the queries, place the following code in the footer of your theme:</p>
<p class="codeblock">&lt;?php<br />
if (current_user_can(&#8217;level_10&#8242;)){<br />
    global $wpdb;<br />
    echo &#8220;&lt;pre&gt;&#8221;;<br />
    print_r($wpdb-&gt;queries);<br />
    echo &#8220;&lt;/pre&gt;&#8221;;<br />
}<br />
?&gt;</p>
<p>The code above uses the level_10 capability so only the administrator will see the query results.</p>
<h3>19. Override of default file permissions</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FS_CHMOD_DIR'</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #208080;">0755</span> <span style="color: #339933;">&amp;</span> ~ <span style="color: #990000;">umask</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FS_CHMOD_FILE'</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span><span style="color: #208080;">0644</span> <span style="color: #339933;">&amp;</span> ~ <span style="color: #990000;">umask</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The above two options allow you to override the default file permissions. You won’t have to define this in most cases. However if your webhost uses restrictive permissions for all user files, then this is the way to go around it.</p>
<h3>20. FTP/SSH Constants</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FS_METHOD'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ftpext'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_BASE'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/path/to/wordpress/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_CONTENT_DIR'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/path/to/wordpress/wp-content/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_PLUGIN_DIR '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/path/to/wordpress/wp-content/plugins/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_PUBKEY'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/home/username/.ssh/id_rsa.pub'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_PRIKEY'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/home/username/.ssh/id_rsa'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_USER'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'username'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_PASS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'FTP_HOST'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'ftp.example.org:21'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>WordPress allows you to upgrade the core version and plugins from within the backend. However, some of you might not be able to enjoy the benefits due to the FTP connection issue. Simply update your wp-config file with the necessary FTP credential and your WP upgrade function should work fine.</p>
<h3>21. Control Proxy Access</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_HTTP_BLOCK_EXTERNAL'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_ACCESSIBLE_HOSTS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'api.wordpress.org'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>The above options allow you to access external hosts from your domain. This is useful if you are in a restrictive environment (such as your comapny&#8217;s intranet) and you need to access an external host. </p>
<h3>Protecting wp-config file</h3>
<p>With so many information in the wp-config.php file, the last thing that you want is for hacker to see your wp-config file and gain access to your database.</p>
<p>Add the following code to your .htaccess file to prevent hackers from accessing your wp-config file.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># protect wpconfig.php</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>files wp-config.php<span style="color: #000000; font-weight: bold;">&gt;</span>
order allow,deny
deny from all
<span style="color: #000000; font-weight: bold;">&lt;/</span>files<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>Did I miss out any tricks? Leave it in the comments</p>
<p><p><script type="text/javascript"><!--
google_ad_client = "pub-8765285789552883";
/* MTE body ad300x250, created 5/17/09 */
google_ad_slot = "3980792036";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p></p>
<p><strong><a href="http://maketecheasier.com/useful-wordpress-wp-config-tricks-that-you-may-not-know/2009/11/17">Useful WordPress wp-config Tricks That You May Not Know</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>


<p>Related posts:<ol><li><a href='http://maketecheasier.com/4-hidden-wordpress-features-that-are-unknown-to-many/2008/08/13' rel='bookmark' title='Permanent Link: 4 Hidden WordPress Features That Are unknown to Many'>4 Hidden WordPress Features That Are unknown to Many</a></li><li><a href='http://maketecheasier.com/clone-and-migrate-wordpress-blog-to-new-server/2008/01/30' rel='bookmark' title='Permanent Link: [Hacking WordPress]: How To Clone And Migrate Your WordPress Blog To New Server'>[Hacking WordPress]: How To Clone And Migrate Your WordPress Blog To New Server</a></li><li><a href='http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17' rel='bookmark' title='Permanent Link: 8 Useful Tricks To Clean Up &#038; Streamline Your Wordpress Database'>8 Useful Tricks To Clean Up &#038; Streamline Your Wordpress Database</a></li><li><a href='http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07' rel='bookmark' title='Permanent Link: The Safe Way to Change your WordPress Database Table Prefix'>The Safe Way to Change your WordPress Database Table Prefix</a></li><li><a href='http://maketecheasier.com/7simple-wordpress-tricks-that-you-thought-you-know/2008/11/10' rel='bookmark' title='Permanent Link: 7 Simple WordPress Tricks That You Thought You Know'>7 Simple WordPress Tricks That You Thought You Know</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/useful-wordpress-wp-config-tricks-that-you-may-not-know/2009/11/17/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>28 Coolest Firefox About:Config Tricks</title>
		<link>http://maketecheasier.com/28-coolest-firefox-aboutconfig-tricks/2008/08/21</link>
		<comments>http://maketecheasier.com/28-coolest-firefox-aboutconfig-tricks/2008/08/21#comments</comments>
		<pubDate>Thu, 21 Aug 2008 05:24:03 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[about:config]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/28-coolest-firefox-aboutconfig-tricks/2008/08/21</guid>
		<description><![CDATA[

You may have installed countless add-on in Firefox to enhance your using experience, but if you want to get the most out of Firefox, you really have to hack your way into the about:config.
The about:config page contains most (if not, all) of Firefox configuration options. It is so far the most effective, and the most [...]<p><strong><a href="http://maketecheasier.com/28-coolest-firefox-aboutconfig-tricks/2008/08/21">28 Coolest Firefox About:Config Tricks</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>



Related posts:<ol><li><a href='http://maketecheasier.com/simple-firefox-tips-and-tricks/2008/02/22' rel='bookmark' title='Permanent Link: Simple Firefox Tips and Tricks (Some of Which You Might Not Know&#8230;)'>Simple Firefox Tips and Tricks (Some of Which You Might Not Know&#8230;)</a></li><li><a href='http://maketecheasier.com/12-essential-firefox-add-ons-for-power-browsing/2008/01/04' rel='bookmark' title='Permanent Link: 12 Essential Firefox Add-ons For Power Browsing'>12 Essential Firefox Add-ons For Power Browsing</a></li><li><a href='http://maketecheasier.com/easy-customization-of-firefox-with-configuration-mania/2008/04/21' rel='bookmark' title='Permanent Link: Easy Customization of Firefox With Configuration Mania'>Easy Customization of Firefox With Configuration Mania</a></li><li><a href='http://maketecheasier.com/10-firefox-extensions-for-better-tab-management/2008/12/23' rel='bookmark' title='Permanent Link: 10 Firefox Extensions For Better Tab Management'>10 Firefox Extensions For Better Tab Management</a></li><li><a href='http://maketecheasier.com/default-your-search-to-googlecom-in-firefox/2009/05/22' rel='bookmark' title='Permanent Link: How To Default Your Search To Google.com In Firefox'>How To Default Your Search To Google.com In Firefox</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p><!--adsense#300x300--></p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://maketecheasier.com/wp-content/uploads/2008/08/firefox-logo.jpg" border="0" alt="firefox-logo" width="584" height="164" /></p>
<p>You may have installed countless add-on in Firefox to enhance your using experience, but if you want to get the most out of Firefox, you really have to hack your way into the <em>about:config</em>.</p>
<p>The <em>about:config</em> page contains most (if not, all) of Firefox configuration options. It is so far the most effective, and the most powerful way to tweak and enhance your Firefox performance. Here are 28 of the popular tweaks.</p>
<p><strong>Accessing your <em>about:config</em> page</strong></p>
<p>In your Firefox, type <em>about:config</em> in the address bar.</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://maketecheasier.com/wp-content/uploads/2008/08/about-config.jpg" border="0" alt="about-config" width="480" height="50" /></p>
<p>You will be shown a warning page. Click the &#8220;<em>I&#8217;ll be careful, I promise!</em>&#8221; button to proceed.</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://maketecheasier.com/wp-content/uploads/2008/08/firefox-config-warning.jpg" border="0" alt="firefox-config-warning" width="584" height="191" /></p>
<p>On the main page, you will see a long list of configuration entries. Enter the name of the key you want to update in the &#8220;<em>Filter</em>&#8221; field. The list will narrow to only the entries that match your keyword as you type.</p>
<p>To modify the value, simply double click on the entry value field and update the entry. That&#8217;s all!</p>
<p>Isn&#8217;t that simple? Now, let&#8217;s get to the tweaking.</p>
<p><strong>1) Adjust the Smart Location Bar&#8217;s Number of Suggestions</strong></p>
<p>In Firefox 3, when you start typing in the location bar, a drop-down list of suggestion URLs will be shown. If you want it to show more than 12 suggestions (12 is the default), you can adjust the <strong><em>browser.urlbar.maxRichResults</em></strong> keys and get it to show the number you want.</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://maketecheasier.com/wp-content/uploads/2008/08/firefox-smart-location.jpg" border="0" alt="firefox-smart-location" width="584" height="197" /></p>
<p>Config name: <em>browser.urlbar.maxRichResults<br />
</em>Default: <em>12</em><br />
Modified value: <em>Set to your desired number of suggestion. If you want to disable it all together, set it to -1</em></p>
<p><strong>2) Disable the session restore function </strong></p>
<p>Firefox 3 automatically saves your session every 10 secs so that whenever it crashes, it can restore all your tabs. While this is a useful feature, some of you might find it irritating. To disable this function, toggle the value of <strong><em>browser.sessionstore.enabled</em></strong> to <em>False</em></p>
<p><em>C</em>onfig name: <em>browser.sessionstore.enabled</em><br />
Default: <em>True</em><br />
Modified value: <em>False if you want to disable the session restore function </em></p>
<p><strong>3) Adjust the Session Restore Saving Frequency</strong></p>
<p>Same as above, if you decided to keep the session restore feature on, but want to reduce the session saving frequency, change the value of <strong><em>browser.sessionstore.interval</em></strong> so that Firefox will save the session at a longer interval.</p>
<p>Config name: <em>browser.sessionstore.interval<br />
</em>Default: <em>10000 (in msecs, equivalent to 10secs)</em><br />
Modified value: <em>Set it to your desired value. 1000 means 1 sec and 60000 means 1 minute. </em></p>
<p><strong>4) Enable Advanced Color Profile Support</strong></p>
<p>Firefox has this advanced color profile features that display higher image quality. It is not enabled by default as it has a negative effect on the performance of the browser. If you are concern with the image quality rather than the performance, you can activated it via the <strong><em>gfx.color_management.enabled</em></strong> setting</p>
<p>Config name: <em>gfx.color_management.enabled<br />
</em>Default: <em>False</em><br />
Modified value: <em>True (if you want to activate the color profile support feature)</em></p>
<p><strong>5) Disable Antivirus Scanning</strong></p>
<p>This is mainly for Windows users. By default, Firefox 3 automatically scan the downloaded file with the default anti-virus application to make sure it is free of virus. If you download a big file, it could take a long time for the whole scanning process to complete. To increase the performance of the browser, you might want to consider disabling the anti-virus scanning via the <strong><em>browser.download.manager.scanWhenDone</em></strong> key.</p>
<p>Config name: <em>browser.download.manager.scanWhenDone</em><br />
Default: <em>True</em><br />
Modified value: <em>False (if you want to disable it)</em></p>
<p><strong>6) Configuring The Scrolling Tabs</strong></p>
<p>When you opened many tabs, Firefox will not keep on reducing the tab width. Instead, it shows a scrolling bar so that the min width (100px) is conserved and you can scroll to find your tabs. If you are those who don&#8217;t like the scrolling tab function and prefer Firefox to show all the tabs, regardless how small it is, you can set the value of <strong><em>browser.tabs.tabMinWidth</em></strong> to 0 to disable it. Similarly, if you want Firefox to display more tabs before showing the scrolling button, you can reduce the default value to a lower value, say 75 pixels.</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://maketecheasier.com/wp-content/uploads/2008/08/firefox-scrollingtab.jpg" border="0" alt="Firefox-scrollingtab" width="321" height="74" /></p>
<p>Config name: <em>browser.tabs.tabMinWidth<br />
</em>Default: <em>100</em><br />
Modified value: <em>0 if you want to disable the scrolling functions, other values to set the min width value </em></p>
<p><strong>7) Show/Disable Close button on Tabs</strong></p>
<p>Some people love to see the <em>Close</em> (the red X) button on every tabs, but some hate it. Whatever is it, you can configure it to your preferences via the <strong><em>browser.tabs.closeButtons</em></strong> setting.</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://maketecheasier.com/wp-content/uploads/2008/08/firefox-tab-close.jpg" border="0" alt="firefox-tab-close" width="584" height="124" /></p>
<p>Config name: <em>browser.tabs.closeButtons<br />
</em>Default: <em>1</em><br />
Modified values:</p>
<ul>
<li><em>0 &#8211; display a close button on the active tab only </em></li>
<li><em>1- display close buttons on all tabs </em></li>
<li><em>2- don’t display any close buttons</em></li>
<li><em>3- display a single close button at the end of the tab strip </em></li>
</ul>
<p><strong>8) Extend Scripts Execution Time</strong></p>
<p>In Firefox 3, a script is only given 10 seconds to respond, after which it will issue a unresponsive script warning. If you are hooked on a slow network connection, you might want to increase the script execution time via <strong><em>dom.max_script_run_time</em></strong> to cut down on the frequency of the no script warning.</p>
<p>Config name: <em>dom.max_script_run_time</em><br />
Default:<em>10 (in secs)</em><br />
Modified value: <em>20, or any values greater than 10</em></p>
<p><strong>9) Handling JavaScript Popups </strong></p>
<p>When you come across a site that executes a javascript open new window function, and if the popup window is without all the usual window features, i.e. <em>back/forward/reload buttons, status bar etc,</em> Firefox will automatically treat it as a popup and will not open it as a new tab. However, if you find this to be a nuisance and wanted to open all new windows in a new tabs, you can specify it via the <strong><em>browser.link.open_newwindow.restriction</em></strong> setting.</p>
<p>Config name: <em>browser.link.open_newwindow.restriction</em><br />
Default: <em>2 &#8211; Open all JavaScript windows the same way as you have Firefox handle new windows unless the JavaScript call specifies how to display the window<br />
</em>Modified values:</p>
<ul>
<li><em>0 – open all links as how you have Firefox handle new windows</em></li>
<li><em>1 – do not open any new windows</em></li>
<li><em>2- open all links as how you have Firefox handle new windows unless the Javascript specify how to display the window </em></li>
</ul>
<p><strong>10) Enable Spell Checking In All Text Fields </strong></p>
<p>The default spell checking function only checks for multi-line text boxes. You can get it to spell-check for single line text box as well.</p>
<p>Config name: <em>layout.spellcheckDefault</em><br />
Default: <em>1 (spell checker for multi-lines text boxes only)</em><br />
Modified values:</p>
<ul>
<li><em>0 – disable the spell checker</em></li>
<li><em>2 – enable the spell checker for all text boxes </em></li>
</ul>
<p><strong>11) Open Search Box Results In New Tab</strong></p>
<p>When you search using the search box at the top right hand corner of the browser, it will display the search results in the current tab. If you don&#8217;t want the search to interfere with your current tab, you can tweak the <strong><em>browser.search.openintab</em></strong> to make it open in a new tab.</p>
<p>Config Name: <em>browser.search.openintab<br />
</em>Default: <em>False</em><br />
Modified value: <em>True (open search box results in new tab)</em></p>
<p><strong>12) Lower The Physical Memory Used When Minimized</strong></p>
<p>This tweak is mainly for Windows users. When you minimize Firefox, it will send Firefox to your virtual memory and free up your physical memory for other programs to use. Firefox will reduce its physical memory usage, when minimized, to approximately 10MB (give or take some) and when you maximize Firefox it will take back the memory that it needs.</p>
<p>The preference name does not exist and needs to be created.</p>
<p>Right click on the background and select <em>New-&gt;Boolean.</em></p>
<p>Enter the name when prompted: <em>config.trim_on_minimize</em><br />
Enter the values: <em>True</em></p>
<p><strong>13) Speed up your Firefox</strong></p>
<p>Several tweaks required for this</p>
<p>Config name: <em>network.http.pipelining</em><br />
Default: <em>False</em><br />
Modified value: <em>True</em></p>
<p>Config name: <em>network.http.proxy.pipelining</em><br />
Default: <em>False</em><br />
Modified value: <em>True</em></p>
<p>Config name: <em>network.http.pipelining.maxrequests<br />
</em>Default: <em>4</em><br />
Modified value: <em>any value higher than 4, but not more than 8 </em></p>
<p>Config name: <em>network.http.max-connections</em><br />
Default: <em>30</em><br />
Modified value: <em>96</em></p>
<p>Config name: <em>network.http.max-connections-per-server</em><br />
Default: <em>15</em><br />
Modified value: <em>32</em></p>
<p><strong>14) Increase/Decrease the Amount of Disk Cache</strong></p>
<p>When a page is loaded, Firefox will cache it into the hard disk so that it doesn&#8217;t need to be download again for redisplaying. The bigger the storage size you cater for Firefox, the more pages it can cache.</p>
<p>Before you increase the disk cache size, make sure that <span style="text-decoration: line-through;"><strong><em>browser.cache.disk.enabled</em></strong></span> <strong><em>browser.cache.disk.enable </em></strong>is set to <em>True</em>.</p>
<p>Config name: <em>browser.cache.disk.capacity</em><br />
Default: <em>50000 (in KB)</em><br />
Modified value:</p>
<ul>
<li><em>0 – disable disk caching </em></li>
<li><em>any value lower than 50000 reduces the disk cache </em></li>
<li><em>any value higher than 50000 increases the disk cache.</em></li>
</ul>
<p><strong>15) Select all text when click on the URL bar</strong></p>
<p>In Windows and Mac, Firefox highlights all text when you click on the URL bar. In Linux, it does not select all the text. Instead, it places the cursor at the insertion point. Regardless which platform you are using, you can now tweak it to either <em>select all</em> or <em>place cursor at insertion point</em>.</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://maketecheasier.com/wp-content/uploads/2008/08/firefox-select-all.jpg" border="0" alt="firefox-select-all" width="445" height="47" /></p>
<p>Config name: <em>browser.urlbar.clickSelectsAll</em><br />
Modified value:</p>
<ul>
<li><em>False – place cursor at insertion point</em></li>
<li><em>True – select all text on click</em></li>
</ul>
<p><strong>16) Autofill Address in URL Bar</strong></p>
<p>Other than the smart location feature, you can also get your URL bar to autofill the address as you type the URL.</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://maketecheasier.com/wp-content/uploads/2008/08/firefox-autofill.jpg" border="0" alt="firefox-autofill" width="248" height="48" /></p>
<p>Config name: <em>browser.urlbar.autofill</em><br />
Default: <em>False</em><br />
Modified value: <em>True (Have Firefox autofill the address as you type in the URL bar)</em></p>
<p><strong>17) Same Zoom Level For Every Site</strong></p>
<p>Firefox remembers your zoom preference for each site and set it to your preferences whenever you load the page. If you want the zoom level to be consistent from site to site, you can toggle the value of <strong><em>browser.zoom.siteSpecific</em></strong> from <em>True</em> to <em>False</em>.</p>
<p>Config name: <em>browser.zoom.siteSpecific</em><br />
Default: <em>True</em><br />
Modified value: <em>False (enable same zoom preferences for every sites) </em></p>
<p><strong>18) Setting your zoom limit</strong></p>
<p>If you find that the max/min zoom level is still not sufficient for your viewing, you can change the zoom limit to suit your viewing habits.</p>
<p>Config name: <em>zoom.maxPercent</em><br />
Default: <em>300 (percent)</em><br />
Modified value: <em>any value higher than 300</em></p>
<p>Config name: <em>zoom.minPercent</em><br />
Default:<em> 30 (percent)<br />
</em>value: <em>any value </em></p>
<p><strong>19) Configure Your Backspace Button</strong></p>
<p>In Firefox, you can set your backspace to better use by getting it to either go back to the <em>previous page</em> or act as <em>page up</em> function.</p>
<p>Config name: <em>browser.backspace_action</em><br />
Default: <em>2 (does nothing)</em><br />
Modified value:</p>
<ul>
<li><em>0 – go back previous page</em></li>
<li><em>1- page up </em></li>
</ul>
<p><strong>20) Increase Offline Cache</strong></p>
<p>If you do not have access to Internet most of the time, you might want to increase the offline cache so that you can continue to work offline. By default, Firefox 3 caches 500MB of data from supported offline Web apps. You can change that value to whatever amount of your choice.</p>
<p>Config name: <em>browser.cache.offline.capacity</em><br />
Default: <em>512000 (in KB)</em><br />
Modified value: <em>any value higher than 512000 will increase the cache value</em></p>
<p><strong>21) Auto Export Firefox 3 bookmarks to bookmarks.html</strong></p>
<p>Unlike the previous version, Firefox 3 backup the bookmarks file in <em>places.sqlite</em> rather than the usual <em>bookmarks.html</em>. Since <em>bookmarks.html</em> allows us to export and sync our bookmarks with other browser, it will be very useful if Firefox 3 can backup the bookmark to the <em>bookmarks.html </em>as well.</p>
<p>Config name: <em>browser.bookmarks.autoExportHTML</em><br />
Default: <em>False</em><br />
Modified value: <em>True (auto export bookmarks file to bookmarks.html)</em></p>
<p><strong>22) Disable Extension Compatibility Checks</strong></p>
<p>This is useful if you want to use an extension that is not supported by your version of Firefox badly. It is not recommended, but you can still do it at your own risk.</p>
<p>Right click and select <em>New-&gt;Boolean</em>. Enter <strong><em>extensions.checkCompatibility</em></strong> in the field. Enter <em><strong>False</strong></em> in the next field.</p>
<p>Right click again and select <em>New-&gt;Boolean</em>. Enter <strong><em>extensions.checkUpdateSecurity</em></strong> into the field and enter <strong><em>False</em></strong> into the next field.</p>
<p><strong>23) Disable Delay Time When Installing Add-on </strong></p>
<p>Everytime you wanted to install a Firefox add-on, you will have to wait for several secs before the actual installation starts. If you are tired of waiting, you can turn the function <strong><em>security.dialog_enable_delay</em></strong> off so that the installation will start immediately upon clicking.</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" src="http://maketecheasier.com/wp-content/uploads/2008/08/firefox-add-on-delay.jpg" border="0" alt="firefox-add-on-delay" width="584" height="390" /></p>
<p>Config name: <em>security.dialog_enable_delay</em><br />
Default: <em>2000 (in msec)</em><br />
Modified value:</p>
<ul>
<li><em>0 – start installation immediately </em></li>
<li><em>any other value (in msec)</em></li>
</ul>
<p><strong>24) View Source in Your Favorite Editor </strong></p>
<p>This is very useful for developers who are always using the <em>&#8216;view source</em>&#8216; function. This tweak allows you to view the source code in an external editor.</p>
<p>There are two configuration need to be made:<br />
Config name: <em>view_source.editor.external</em><br />
Default:<em> False</em><br />
Modified value: <em>True ( enable view source using external text editor)</em></p>
<p>Config name: <em>view_source.editor.path</em><br />
Default: <em>blank</em><br />
Modified value: <em>insert the file path to your editor here.</em></p>
<p><strong>25) Increasing &#8216;S<em>ave Link As</em>&#8216;  timeout value </strong></p>
<p>When you right click and select the <em>&#8216;Save Link As&#8230;</em>&#8216;, the browser will request the content disposition header from the URL so as to determine the filename. If the URL did not deliver the header within 1 sec, Firefox will issue a timeout value. This could happen very frequently in a slow network connection environment. To prevent this issue from happening frequently, you can increase the timeout value so as to reduce the possibility of a timeout.</p>
<p>Config name: <em>Browser.download.saveLinkAsFilenameTimeout</em><br />
Default: <em>1000 (1 sec)</em><br />
Modified value: <em>any value higher than 1000 (value is in msec) </em></p>
<p><strong>26) Animate Fullscreen Toolbar Collapse mode</strong></p>
<p>In Firefox’s fullscreen mode, toolbars and the tab strip are hidden at the top of the screen and only shown on mouseover. To draw attention to this, there is an animation of the toolbar sliding upwards and off-screen when fullscreen mode is toggled on. For performance issue, the animation of the collapse of the toolbar only appear for the first time. For some reason that you may love/hate the animation, you can adjust <strong><em>Browser.fullscreen.animateUp</em></strong> to switch it on/off for every collapse.</p>
<p>Config name: <em>Browser.fullscreen.animateUp</em><br />
Default: <em>1 (animate the toolbar collapse only the first time)</em><br />
Modified value:</p>
<ul>
<li><em>0 -disable the animation </em></li>
<li><em>2- enable the animation for every collapse </em></li>
</ul>
<p><strong>27) Autohide Toolbar in Fullscreen mode </strong></p>
<p>In fullscreen mode, the toolbar is set to autohide and appear upon mouseover. If you have a need to view the toolbar at all time, you can toggle the value of <strong><em>browser.fullscreen.autohide</em></strong> to <em>False</em> to always show the toolbar.</p>
<p>Config name: <em>browser.fullscreen.autohide</em><br />
Default: <em>True (always autohide)</em><br />
Modified value: <em>False (always show the toolbar)</em></p>
<p><strong>28) Increase Add-On search result</strong></p>
<p>If you go to <em>Tools-&gt;Add-ons-&gt;Get Add-ons</em> and perform a search there, Firefox will only fetch and display 5 matching results. If you want Firefox to show more than 5 results (say 10), you can adjust <strong><em>extensions.getAddons.maxResults</em></strong> to get it to display more results.</p>
<p>Config name: <em>extensions.getAddons.maxResults</em><br />
Default: <em>5</em><br />
Modified value: <em>any value more than 5</em></p>
<p>This list of <em>about:config</em> is definitely not the complete list. If you have any tricks not listed here, please add it in the comment.</p>
<p><!--adsense#468x60--></p>
<p><strong><a href="http://maketecheasier.com/28-coolest-firefox-aboutconfig-tricks/2008/08/21">28 Coolest Firefox About:Config Tricks</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)</p>


<p>Related posts:<ol><li><a href='http://maketecheasier.com/simple-firefox-tips-and-tricks/2008/02/22' rel='bookmark' title='Permanent Link: Simple Firefox Tips and Tricks (Some of Which You Might Not Know&#8230;)'>Simple Firefox Tips and Tricks (Some of Which You Might Not Know&#8230;)</a></li><li><a href='http://maketecheasier.com/12-essential-firefox-add-ons-for-power-browsing/2008/01/04' rel='bookmark' title='Permanent Link: 12 Essential Firefox Add-ons For Power Browsing'>12 Essential Firefox Add-ons For Power Browsing</a></li><li><a href='http://maketecheasier.com/easy-customization-of-firefox-with-configuration-mania/2008/04/21' rel='bookmark' title='Permanent Link: Easy Customization of Firefox With Configuration Mania'>Easy Customization of Firefox With Configuration Mania</a></li><li><a href='http://maketecheasier.com/10-firefox-extensions-for-better-tab-management/2008/12/23' rel='bookmark' title='Permanent Link: 10 Firefox Extensions For Better Tab Management'>10 Firefox Extensions For Better Tab Management</a></li><li><a href='http://maketecheasier.com/default-your-search-to-googlecom-in-firefox/2009/05/22' rel='bookmark' title='Permanent Link: How To Default Your Search To Google.com In Firefox'>How To Default Your Search To Google.com In Firefox</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/28-coolest-firefox-aboutconfig-tricks/2008/08/21/feed</wfw:commentRss>
		<slash:comments>57</slash:comments>
		</item>
	</channel>
</rss>
