How to Limit Post Revisions in WordPress?

Jan 13, 2026 | Blog

How to Limit Post Revisions in WordPress?

If you are using WordPress, you might not even notice it, but WordPress keeps saving copies of your posts again and again. These copies are called post revisions.

Revisions are useful, yes, but too many of them can actually slow down your site over time. This usually happens on blogs where posts are edited frequently or by multiple people.

In this article, we’ll talk about:

  • What post revisions actually are
  • Why having too many revisions is not a good idea
  • Simple ways to limit post revisions in WordPress

What Are Post Revisions?

Post revisions are automatically saved copies of your content that WordPress creates while you’re working on a post or page. Every time you click Save, Update, or when WordPress auto-saves content in the background, a new revision is stored in the database.

Basically, WordPress keeps a history of all the changes made to your content.

This feature is actually very helpful in many situations, for example:

  • If you accidentally delete some text and save the post
  • If you make changes and later feel the older version was better
  • If something breaks after an update and you want to go back

In such cases, you can easily restore an older revision with just one click, which is quite handy.

However, there is a downside too.

By default, WordPress saves unlimited post revisions. That means even small edits, typo fixes, or auto-saves create another copy every time. Over a period of time—especially on active blogs—hundreds or even thousands of revisions can get stored in the database.

Most of the time, we don’t really need that many old versions. Keeping unlimited revisions just increases the database size and can slowly affect site performance.

That’s why managing and limiting post revisions is important for keeping your WordPress site clean and optimized.

Why Limiting Post Revisions Is a Good Idea

If your site has been running for some time, revisions can pile up quickly in the database.

Limiting them helps to:

  • Reduce database size
  • Improve site performance
  • Make backups faster
  • Keep things more clean and manageable

It’s a small change, but over time it can actually make a noticeable difference.

Method 1: Limit Post Revisions Using wp-config.php

This is the most common and reliable method.

Open wp-config.php

You can find this file using FTP or your hosting file manager.

hosting file manager

Add the code

Add the following line before this line:
/* That’s all, stop editing! Happy publishing. */

wp-config.php

define(‘WP_POST_REVISIONS’, 5);

This means WordPress will keep only 5 revisions per post, instead of unlimited ones.

Want to disable revisions completely?

If you really don’t need revisions at all, you can use:

define(‘WP_POST_REVISIONS’, false);

Just keep in mind that once revisions are disabled, you won’t be able to restore older versions.

Method 2: Using Plugins to Limit Post Revisions

There are several free plugins that make controlling post revisions very easy and safe. These plugins let you manage revisions without touching any code.

Some popular free options include:

1. WP-Optimize

WP-Optimize not only helps limit post revisions, but also cleans your database, removes spam comments, and improves overall website performance.

WP Optimize

2. WP Revisions Control

This is a lightweight plugin that lets you set a limit on how many revisions WordPress should keep for posts, pages, and even custom post types.

3. Advanced Database Cleaner

This plugin helps you clean old revisions, drafts, spam comments, and other unused data. It’s a good option if you want to keep the database neat and fast.

How it works:

  1. Install and activate the plugin.
    Go to WordPress Dashboard → Plugins → Add New, search for the plugin, then install and activate it.
  2. Open plugin settings.
    Each plugin has its own settings page, usually under Dashboard → Settings or its own menu.
  3. Set how many revisions you want to keep.
    For example, you may decide to keep only the latest 3 or 5 revisions.
  4. Save changes.
    Don’t forget this step. Once saved, the plugin will start managing revisions automatically.

What About Old Revisions?

Limiting revisions does not remove old ones automatically. Existing revisions will remain unless you clean them manually.

You can:

  • Use a database cleanup plugin
  • Clean revisions using WP-Optimize or similar tools

Always take a full backup before deleting anything from the database, just to be safe.

Recommended Settings

For most websites, these settings work well:

  • Keep 3 to 5 revisions per post
  • Don’t disable revisions unless it’s really needed
  • Clean old revisions once in a while

This setup is good enough for most blogs and business websites.

Final Thoughts

Post revisions are definitely useful, but unlimited revisions are honestly not needed for most sites. Limiting them helps keep your WordPress site lighter, faster, and easier to manage.

It’s one of those small optimizations people usually ignore, but it actually does make a difference in the long run.

Posted By:
Karan Kumar
Karan loves making web beautiful with his keen eyes toward design.

0 Comments

Submit a Comment

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

0 Comments

Submit a Comment

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

How to Optimize Images for WordPress 

How to Optimize Images for WordPress 

Images make WordPress website visually appealing and engaging. However, large or unoptimized images can slow down your website, affect user experience, and reduce search engine rankings. That’s why image optimization is an important step for every WordPress website...

How to fix WordPress not sending emails?

How to fix WordPress not sending emails?

Emails are an important part of our WordPress site. From contact form messages to password resets and order alerts if emails don’t work, users can miss key information. Sometimes WordPress doesn’t send emails the way it should, but most of the time you can fix it...

Best WooCommerce Plugins on Sale | Flat 70% OFF

Best WooCommerce Plugins on Sale | Flat 70% OFF

Our Black Friday sale will end soon, and with that, the biggest discount of the year on the best WooCommerce plugins will be gone.  All the great plugins and widgets will be available at the original price and probably cost more with additional features introduced....

Explore, Learn, Grow: Join Now!