# Revisions & Autosave for WordPress

> Limit how many post revisions are kept, and change the autosave and empty-trash intervals. Part of Toggleworks, one plugin for the whole site.

TW-PRF-16 Performance


Limit how many post revisions are kept, and change the autosave and empty-trash intervals.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Revisions & Autosave

**Part number**
: TW-PRF-16
**Section**
: [Performance](https://togglework.app/features/performance/)
**Settings**
: 4
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

WordPress keeps every saved version of every post by default. On sites that have been edited for years, revisions can make up a large part of the database.

### What it does

- Keeps a limited number of revisions per post (default 5), or none.
- Changes the autosave interval.
- Changes when the trash is emptied.

![Revisions & Autosave settings screen in the Toggleworks WordPress plugin, showing Revisions, Revisions to keep per post, Autosave interval (seconds), Empty trash after (days)](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/performance-revisions.webp?v=1795524222)

The Revisions & Autosave screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Keep 5–10 revisions; that is plenty of undo history.
2. Remove the existing backlog once with [Database Cleanup](https://togglework.app/features/performance/db-cleanup/).

## What you can set

Switch Revisions & Autosave on in Toggleworks → Performance, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Revisions
- Revisions to keep per post
- Autosave interval (seconds)
- Empty trash after (days)

## Good to know

- Settings defined in wp-config.php (AUTOSAVE\_INTERVAL, EMPTY\_TRASH\_DAYS) win over these.

## One less plugin to install

Revisions & Autosave does a job people often install a separate plugin for:

- Heartbeat, revisions and autosave limitsOften done with Perfmatters

## Comes with 187 more parts

Revisions & Autosave is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 18 Performance parts](https://togglework.app/features/performance/)

### People also look for it as

- revisions
- autosave
- trash
- database
- wp\_post\_revisions
- empty\_trash\_days

## Often switched on with it

- [Database Cleanup](https://togglework.app/features/performance/db-cleanup/) — TW-PRF-04 · Remove old revisions, auto-drafts, trash, spam, orphaned meta and expired transients, by hand or on a weekly schedule. · 3 settings
- [Heartbeat Control](https://togglework.app/features/performance/heartbeat/) — TW-PRF-07 · Reduce admin-ajax load by disabling or slowing the WordPress Heartbeat on the front end, dashboard and post editor. · 6 settings
- [Database Backups](https://togglework.app/features/core/backups/) — TW-COR-02 · Back up the database on demand or on a schedule, download copies, and restore one in a click — handy before updates or big… · 3 settings
- [Search & Replace](https://togglework.app/features/core/search-replace/) — TW-COR-22 · Find and replace text across the database — for domain moves, HTTP→HTTPS or renamed content — with a dry run first and serialized… · Own screen in wp-admin
- [Asset Manager](https://togglework.app/features/performance/asset-manager/) — TW-PRF-01 · See every CSS and JavaScript file a page loads and switch off the ones it does not need — on one page, everywhere, or everywhere… · Own screen in wp-admin
- [Browser Cache Headers](https://togglework.app/features/performance/page-cache-headers/) — TW-PRF-14 · Let browsers and proxies cache pages for logged-out visitors, and optionally strip ?ver= from asset URLs. · 2 settings

## Questions

**Is Revisions & Autosave included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Revisions & Autosave among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Revisions & Autosave slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Revisions & Autosave only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Revisions & Autosave before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/performance/revisions/
