Limit WordPress Revisions In wp-config – Revision Control Speeds Up Database | WP Learning Lab

Seize Your Free 17-Level WordPress Pre-Launch PDF Guidelines:
Obtain our unique 10-Level WP Hardening Guidelines:
Restrict WordPress Revsions In wp-config – Revision Management Speeds Up Database | WP Studying Lab

outline( ‘WP_POST_REVISIONS’, X );

On this tutorial you’ll study in regards to the WordPress revision management system (also called WordPress model management). This technique retains WordPress web page revisions and WordPress submit revisions incase you wish to revert again to them sooner or later.

The way in which it really works is each time you make a change to a WordPress web page or submit and reserve it WordPress creates a brand new revision within the database. In the event you create lots of revisions for lots of pages and posts, holding these additional revisions can devour A LOT of database house and sources. This could decelerate your website considerably.

So I like to recommend that you just use a WordPress revisions plugin to WordPress restrict revisions. Or add the next code proper to your wp-config.php file:

outline( ‘WP_POST_REVISIONS’, X );

All it’s important to do is paste that into wp-config.php above the place it says “Cease Modifying, Pleased Running a blog!”. Substitute the X with the variety of revisions you wish to maintain, often three is an efficient quantity. Then save the wp-config.php file.

The entire revisions will nonetheless be there for every submit, however the subsequent time you save the submit, all however the newest three revisions will probably be eliminated.

By placing that code into the wp-config.php file you’ll be able to keep away from utilizing a revision management plugin or a submit revisions plugin.

I extremely suggest you restrict the variety of submit revisions to maintain your database optimized. With this technique you do not WordPress edit revisions, you merely eradicate revisions.

I hope this data helps you! You probably have any questions go away a remark under or ping me @WPLearningLab on Twitter.


In order for you extra wonderful WordPress data take a look at our web site the place we submit WordPress tutorials day by day.


Join with us:

WP Studying Lab Channel:



Google Plus:



You might be interested in


Your email address will not be published. Required fields are marked *