WordPress revisions are useful until they start piling up like old receipts in a desk drawer. One page edit becomes five, then fifteen, then a slow-growing mess in the database.

We do not need to choose between safety and speed. We can keep the backup trail, trim the clutter, and make the site easier to manage without turning editing into a gamble.

Why WordPress revisions and autosaves fill up so fast

Every time we save a post or page, WordPress can store another revision. Autosaves are separate, and they kick in while we are still editing. That is great when something crashes. It is less great when a site has hundreds of posts, multiple editors, or a busy update schedule.

The built-in behavior is laid out in the WordPress.org revisions documentation, which is the cleanest place to start. For a second reference that walks through viewing, restoring, and trimming revisions, Instawp’s revisions guide is easy to follow.

Here is the simple version. Revisions help us recover work. Too many revisions make the database heavier than it needs to be.

FeatureWhat it storesWhat we should do
WordPress revisionsSaved versions after editsKeep a small cap
AutosavesTemporary recovery copy while editingLeave on, adjust carefully
Old database clutterUnused revision history and extrasClean it out after changes

That difference matters. If we treat revisions and autosaves like the same thing, we end up fixing the wrong setting.

Set a revision limit that fits the site

The cleanest way to limit WordPress revisions is in the wp-config.php file. That file sits in the root of the site, and it controls a few core WordPress settings. A revision cap keeps the database from collecting unlimited copies of every post.

We usually start with a number that matches the site size and publishing pace.

  • 3 revisions works well for small brochure sites or simple business pages.
  • 5 revisions is a solid middle ground for most websites.
  • 10 revisions makes sense for editorial teams that rewrite posts often.

To set the limit, we open wp-config.php and add this line before the “That’s all, stop editing!” line:

define('WP_POST_REVISIONS', 5);

If we want to turn revisions off completely, WordPress accepts false instead of a number. That said, most sites should not do that. A small cap gives us a safety net without the pileup.

Before we edit core files, we back up the site. That is the move that keeps a simple tweak from becoming a long afternoon. If we want that backup safety net built into the hosting layer, our optimized WordPress hosting plans give us automatic backups, 24/7 support, and the kind of setup that makes changes less stressful.

A quick rule helps here: if we publish often, cap revisions. If we publish rarely, cap them anyway. Unlimited history is rarely the win it looks like.

Tune autosaves without removing the safety net

Autosaves are not the same as revisions. They protect the content we are actively typing, and WordPress usually runs them about every 60 seconds. That timing is useful, but it does not have to stay fixed forever.

We can change the interval in wp-config.php with this constant:

define('AUTOSAVE_INTERVAL', 120);

That example doubles the interval to 120 seconds. For many sites, that is enough. It cuts down on noise without making editing feel fragile.

A longer autosave interval can reduce clutter, but it also gives us a bigger gap if the browser freezes or the connection drops.

That is why we do not rush to turn autosave off. We tweak it with care. For long-form content, 90 or 120 seconds can feel comfortable. For live editors working on unstable connections, the default setting may be the smarter call.

The key point is simple. Revisions and autosaves solve different problems. Revisions track saved history. Autosaves protect unfinished work. If we keep that line clear, the settings stay easy to manage.

Clean the database after the limit is in place

Setting a cap does not erase the old clutter. It only stops the pile from growing forever. If our site already has years of revision history, we still need to clear out what is sitting there.

Rows of high-tech server racks disappear into the distance, illuminated by pulsating neon blue cables. The clean, cinematic arrangement highlights a modern data center undergoing a deep system optimization process.

A database cleanup usually covers a few simple jobs:

  • Remove old post revisions.
  • Empty the trash.
  • Clear spam comments and temporary data.
  • Optimize database tables after the cleanup.

A plugin can do this work for us, and that is often the easiest route. Tools like WP-Optimize or Advanced Database Cleaner are common choices for routine cleanup. If we prefer a lighter touch, we can also use the database tools inside our hosting panel or work through phpMyAdmin with care.

Back up first. Always. Then clean. Then test the site.

This matters more on content-heavy websites, online stores, and any site that gets frequent edits. Those setups create more revision history, which means more room for bloat. A lean database is not glamorous, but it helps the admin area feel faster and the backups stay smaller.

If we are not sure how much old data is sitting around, it is better to inspect it before deleting anything. A little caution beats a broken restore later.

Make the job easier with the right hosting setup

We can do everything right inside WordPress and still feel stuck if the hosting is slow or awkward. A good host gives us room to make changes with less friction. That includes backups, support, and a setup that does not fight us when we need to clean house.

On our WordPress hosting plans, we pair performance with hands-on support, automatic backups, and one-click restore. That makes revision control a lot less intimidating. If something looks wrong after a config change, we are not scrambling. We can roll back and keep moving.

That kind of setup also helps when we manage multiple sites. We spend less time worrying about the server side and more time tightening the parts that actually affect content and speed. WordPress revisions stay under control. Autosaves stay useful. The database stays lighter.

For site owners who want a practical setup, not a complicated one, that is the sweet spot. We get the safety net, but not the clutter.

Keep revisions useful, not heavy

WordPress revisions should help us recover work, not weigh the site down. Once we set a reasonable cap, keep autosave active, and clear out old clutter, the whole system feels calmer.

That is the balance we want. Protection without excess. A small safety net, a clean database, and hosting that makes the whole process easier. For most sites, that is all it takes to keep WordPress revisions under control and keep the workflow moving.

We use cookies so you can have a great experience on our website. View more
Cookies settings
Accept
Decline
Privacy & Cookie policy
Privacy & Cookies policy
Cookie name Active

Who we are

Our website address is: https://zadic.net.

Comments

When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection. An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.

Media

If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.

Cookies

If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year. If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser. When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select "Remember Me", your login will persist for two weeks. If you log out of your account, the login cookies will be removed. If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.

Embedded content from other websites

Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website. These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.

Who we share your data with

If you request a password reset, your IP address will be included in the reset email.

How long we retain your data

If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue. For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.

What rights you have over your data

If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.

Where your data is sent

Visitor comments may be checked through an automated spam detection service.
Save settings
Cookies settings