The file is not just to find out information on the database or the user of it … Here’s some interesting information in the configuration of your blog with the wp-config:
The Trash of WordPress:
The comments, articles are not deleted but go directly into the trash. You can then write this code in the wp-config.php to empty the Trash after 14 days:
define('EMPTY_TRASH_DAYS', 14 );
Or, if you want to disable altogether the trash (at your own risk!)
define('EMPTY_TRASH_DAYS', 0 );
The number of versions of a post:
You can tweak not to show the number of versions of an article because you do not have an unlimited database, you can write this code to disable versions of articles.
define('WP_POST_REVISIONS', false );
Save Article after a certain period:
You can automate the registration of a draft of an article after X seconds. With this code, you can save your draft every 2 minutes and 1 second.
define('AUTOSAVE_INTERVAL', 121 );
Increase the PHP Memory:
If the memory is reserved for PHP applications is not sufficient, then we can increase the memory to XY megabytes (in multiplier of 8; i.e. 32, 64, 128 ..so on.).
We are stopping there for today! We have seen that the file wp-config can be used for many things in the configuration of your blog on WordPress.
Follow the Author of this article :