How to Control Revisions for Post Types in WordPress


How to Control Revisions for Post Types in WordPress
Melania Tripp

Post revisions provide you an easy way to undo changes, restore posts, and revert to old drafts. However, many users believe that too many revisions can increase their backup file sizes, increase post query times, and affect overall performance of their site. It is easy to disable post revisions, but to do that you need to edit the configuration file. In this article, we will show you how to control revisions for post types in WordPress with a simple user interface.

How to Control Revisions for Post Types in WordPress
Karry Laporte

Post revisions provide you with an easy way to undo changes to posts and revert them to an older draft. Many users feel that too many revisions can slow your site down. In this video, we will show you how to control revisions for post types in WordPress.

How to Disable and Limit WordPress Post Revisions
Gloria Russell

Alternatively, if you want to limit the number of revisions of a post, you can use a number. A common scenario is when the clients need WordPress revisions, while the developers wish to reduce the strain on the database. In such cases, the developers set a number of revisions to be retained. WordPress will automatically limit the number of saved post revisions to the selected number.

WordPress Post Revisions: Everything You Need to Know
Aline Knutson

See, each time that WordPress saves a revision, it stores a complete copy of that revision in your site’s database. This is, in part, why you’re able to speed up your WordPress site by periodically optimizing your WordPress database to remove post revisions and other gunk.

WordPress.org
Perla Thorne

Why is this helpful? Revisions are stored in the database, and if many are stored, can cause bloat. This bloat may lead to slower queries, which can have a noticeable performance impact. The value of these revisions also depends on what is being tracked. For example, I may want to store every revision of the posts I write, but only desire to keep the latest five versions of each page on my site. Starting in WordPress 3.6, this control is available. WordPress doesn’t provide a native interface to specify revisions quantities, so I wrote this quick plugin to do so.

How to Control WordPress Post Type Revisions
Linsey Sawyers

However, a lot of users think (and rightly so) that too many revisions lead to an increase in their backup file sizes, an increase in post query times, and overall affect the performance of their site. It isn’t too difficult to disable post type revisions, but to do that manually you would need to edit the configuration file.

Be the first to comment

Leave a Reply

Your email address will not be published.


*