How to Reduce Post Revisions in WordPress Website?

Jun 23, 2016
160
1

We are ready to present you a brand new WordPress hack. Today we'll be dealing with posts revisions count reduction.

What is posts revisions? It is a feature introduced in WordPress 2.6. Whenever you or WordPress saves a post or a page, it automatically creates a revision and stores in your WordPress database.

Why should we reduce their count? Each additional revision will slowly increase the size of your WordPress database. If you save a post or page multiple times, your number of revisions will greatly increase overtime. For example, if you have 100 posts and each post has 10 revisions you could be storing up to 1,000 copies of older data!

So if you need keep your website fast and optimized, do not hesitate to use the advice we are going to present you below.

To reduce post revisions, you need to go to the root of your WordPress installation using cPanel File Manager or FTP. The file you will need to edit is named wp-config.php Open this file and copy this string of code to it:

define('WP_POST_REVISIONS', X);

Where X should be replaced with the number of the revisions you'd like to have.

Note! It is recommended to copy this command to the first line under the initial block comment in wp-config.php.

Now if you save the changes and refresh your WP Dashboard that should be it. No more redundant data and no issues with website load speed.

Thank you for your attention and stay tuned for new hacks, they are already around the corner!


[mc4wp_form id="74928"]
AB
Alex Bulat
2
v Complain

Recommend this post to others!

Found the post interesting? You might also like:

1 Comments

2017-04-14 11:02:00

Hello, I so... appreciate this post but Im getting halted by the wp-config.php file. I cant find it... I logged into HostGator C-Panel & Clicked on File Manager under popular links. Once there my screen doesn't show anything like your screen shot does. Any suggestions??? Thanks In advance Note: I use mac OS Sierra 10.12.4

Last Updated : Jan 20, 2017

Rating of post