🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Conta Get it free
Revision Retention icon
Manutenção ativamente Testado com WP 7.1

Revision Retention

Keep the newest revisions of every post and drop the ones older than a threshold you set. Per post type, on a schedule or from WP-CLI.

Instalações ativas<10Novo
Downloads · 30d825▲ +60.8% vs prev. 30d
Classificação—0 comentários
Pontuação da saúde64/100Bom
Downloads de todos os tempos1.5KDesde setembro de 2026
Suporte resolvido—Sem tópicos recentes
RequerWP 6.7Php 8.2+
Downloads · 7d145▼ -6.5% week over week
Nosso veredicto

Escolha sólida

Revision Retention is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 1 day ago, and scores 64/100 on our health check.

  • Desenvolvido ativamente — última atualização 1 dia atrás
  • Testado com as últimas WordPress (7.1)
  • Momentum — downloads up 60.8% vs the previous 30 days
  • Base de usuários pequenas (<10 instalações ativas)
  • Muito poucos comentários até agora
  • Precisa de PHP 8.2 ou mais recente

Como ele se acumula?

Lado a lado em instalações, atualizações, avaliações e suporte

Downloads diários

163349Sep 24Oct 29Dec 3
Ontem60
Média diária (1y)21
Dia de pico6628 de outubro de 2026
Últimos 12 meses1.5K

Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.

Rankings

Where Revision Retention stands today

WordPress.org Classificações de pesquisa

Posição ao vivo na pesquisa de plugins, top 100
Palavra chavePosiçãoPlugins concorrentesCategoria
limpeza >100 7,127 Melhores plugins de limpeza →
banco de dados >100 10,000 Melhores plugins de banco de dados →
execução >100 10,000 Plugins de melhor desempenho →
post types >100 10,000 Best post types plugins →
revisions >100 2,081 Best revisions plugins →

About Revision Retention

From the official readme · v1.9.0

Descrição

WordPress keeps post revisions forever unless you set WP_POST_REVISIONS, and even then the only thing you can set is a count that applies to the whole site and only takes effect while a post is being saved. A site that has been running for a few years ends up with tens of thousands of revisions nobody will ever open, slowing down queries and padding out every backup.

This plugin gives revisions a retention policy instead:

  • Always keep the newest few. A floor that is never crossed, however old those revisions are.
  • Remove what is older than a threshold. Anything past the floor and past the age you pick, from a week up to five years.
  • Set both per post type. Long history for posts, a short leash on pages, nothing at all for a custom post type that churns.
  • Clean up what is already there. A scheduled sweep works through the site in batches, so an old site with a large wp_posts table is cleaned up over several quiet runs rather than one heavy one.

The two numbers work together

This is the part worth understanding, because it is what keeps the plugin safe to switch on:

  • Always keep is a floor. The newest N revisions of a post are never deleted, whatever their age.
  • Remove older than is a ceiling, and it only applies to what is left above the floor.

So a page that was last edited three years ago, with forty revisions and a policy of keep 5, remove older than 365 days, keeps its five most recent revisions and loses the other thirty-five. It does not lose its whole history just because all of it is old.

Setting Always keep to -1 means every revision is retained and that post type is never swept, whatever the age threshold says.

Autosaves are never touched. An autosave is somebody’s unsaved work rather than a point in the history.

Enable revisions where WordPress does not

Some post types ship without revision support, so nothing is recorded at all. The settings screen lists every eligible post type with a checkbox to switch revisions on for it. It applies from the next time such a post is saved.

On a schedule

The sweep runs in the background at an interval you choose, from every hour to once a month, or on the days of the week you tick: once at the hour you pick, say Monday and Wednesday at 03:00 in the site’s timezone, or every hour or every few hours from that hour until midnight. Every run books the next one itself: another batch in a minute while there is work left, or the next full run at your interval once the site is clean. A sweep that gets interrupted continues where it stopped instead of starting over.

There are also Preview and Run one batch now buttons on the settings screen. Preview reports what the policy would remove without deleting anything.

A log of every sweep

The log is on from the start, and every sweep that removes revisions gets an entry on the Logs tab: whether the schedule, somebody on the settings screen, WP-CLI or the plugin’s run-sweep ability ran it, who that was, how many revisions it removed from how many posts, and per post type. A sweep spread over many batches is one entry. The tab shows them on a timeline, with a bar per day for the last month. Entries are kept for as long as you choose, from a week to a year, and older ones are deleted daily. Previews are never logged, and the log can be switched off on the Logs tab.

The settings screen opens with the number of revisions removed since the plugin was installed, and the Dashboard widget shows it too. That total is kept apart from the log, so it still counts with the log switched off and after old entries are deleted. On multisite each site has its own, and the network’s Logs tab gives the total for every site together. A site that ran the plugin before the total existed starts from what its log still holds.

Each site keeps its own log, next to its own revisions. On multisite the network screen’s Logs tab shows every site’s log together on one timeline, with each entry naming the site it ran on and linking to that site’s own log.

A walkthrough of the settings

A short walkthrough shows you around the settings screen: the numbers at the top, the policy, the post types, the schedule, sweeping now, the log, with an example of a log entry, and the Dashboard widget. It never starts by itself. Start it from the Start walkthrough link beside Settings on the Plugins screen, tagged New while there is something you have not seen, or from the link at the foot of the settings screen. After an update that adds to the screen, the link on the Plugins screen shows only what is new.

Don’t want it? Switch off Walkthrough on the Advanced tab, for a site or for the whole network, and both links go. In code, define( 'RVRT_DISABLE_WALKTHROUGH', true ); or the revision_retention_walkthrough filter does the same.

Light, dark and high contrast

The settings screen, the Dashboard widget and the walkthrough follow the contrast setting of the system: more contrast, less contrast, or Windows High Contrast and other forced colours. On its own settings screen the plugin also follows the system’s dark mode, the whole page included. Text meets WCAG 2.2 AA contrast in every one of them, on every admin colour scheme.

From WP-CLI

# What is the policy, and what has it still got to do?
wp revision-retention status

# The rule and the stored revisions of every post type.
wp revision-retention post-types

# See what would go, without deleting anything.
wp revision-retention run --dry-run

# Apply the policy to pages only.
wp revision-retention run --post-type=page --yes

On multisite

The network admin sets the defaults for every site, under Network Admin → Settings → Revision Retention. A switch there decides whether sites may override them. When they may, each site’s own screen inherits every field it leaves empty and shows the network value behind it; when they may not, that screen reports the policy and nothing more.

Settings travel the other way too. Once you have a policy on one site that you want everywhere, Save as network default on that site’s screen makes it the default for the whole network and drops the site’s own copy, so the site simply inherits what it already had. Sites with settings of their own keep them; only the defaults underneath move. The button only appears for a network administrator, since it decides what every other site starts from.

When the network keeps the policy to itself, a site’s screen can still Preview — reading what the policy would take away costs nothing — but only a network administrator can actually sweep that site. Otherwise a network could switch the scheduled sweep off and a site administrator could still delete by hand, which is the opposite of what locking the policy is for.

The network screen can Preview every site, walking the whole network and reporting what the policy would remove without deleting anything, Sweep every site now, which does the same and deletes as it goes, site after site, with a progress bar and an entry in each site’s log, and Schedule a sweep on every site, which leaves the work to WP-Cron on each site instead. Both pass over the sites that have switched the sweep off. The sweep itself always runs per site, under whatever policy that site ends up with.

Its Logs tab brings the log of every site together, so you can see what was removed across the network, where, and by whom, without opening each site in turn.

Para desenvolvedores

// Never touch these posts, whatever the policy says.
add_filter( 'revision_retention_excluded_posts', fn( $ids ) => [ ...$ids, 42, 108 ] );

// Decide the rule for a post type in code.
add_filter( 'revision_retention_rule', function ( $rule, $post_type ) {
    return 'page' === $post_type ? new Retention_Rule( 20, 90 ) : $rule;
}, 10, 2 );

// Change which post types can have a policy at all.
add_filter( 'revision_retention_eligible_post_types', $callback );

// Clear a cache once per sweep batch rather than for every revision it deletes.
add_action( 'deleted_post', function () {
    if ( ! \Acato\RevisionRetention\Includes\Cleaner::is_sweeping() ) {
        my_clear_cache();
    }
} );
add_action( 'revision_retention_revisions_removed', 'my_clear_cache' );

Abilities (WordPress 7.1)

On WordPress 7.1 and later the plugin registers its work with the Abilities API, in the revision-retention category:

  • revision-retention/get-status: revisions stored, the policy, the next sweep, whether WP-Cron runs, and where the current sweep stands.
  • revision-retention/get-post-types: per post type, the revisions it stores and the rule that applies to it.
  • revision-retention/preview-sweep: what a sweep would remove, per post type, without deleting anything.
  • revision-retention/get-sweep-log: the most recent sweeps, where each came from and what it removed.
  • revision-retention/run-sweep: removes one batch of revisions now, under the same rules as Run one batch now, and is logged as such.

They work on the current site and ask for manage_options, the capability that also opens the settings screen; on a network that keeps the policy to itself, run-sweep is for network administrators only. They are not public and not on the REST API, so only code running on the site can call them, and none of them returns who ran a sweep, user IDs or post titles.

$status = wp_get_ability( 'revision-retention/get-status' )->execute();

Deletion goes through wp_delete_post_revision() rather than a bulk query, so post meta and term relationships are cleaned up the way WordPress expects and other plugins see the hooks they are listening for.

That also means whatever another plugin does when a post is deleted runs once for every revision. A plugin that clears a cache on each deletion can clear it once per batch instead; see For developers.

Development happens at github.com/acato-plugins/revision-retention.

Instalação

  1. Upload the plugin folder to /wp-content/plugins/, or install it through Plugins → Add New.
  2. Activate the plugin through the Plugins screen. On multisite you can network activate it.
  3. Set the policy under Settings → Revision Retention, or Network Admin → Settings → Revision Retention on multisite.
  4. Press Preview to see what the policy would remove before letting it run.

Log de Changes

1.9.0

  • The settings screen opens with the number of revisions removed since the plugin was installed, linked to the Logs tab. The Dashboard widget shows it too, and on multisite the network’s Logs tab and widget give the total for every site together. It is kept apart from the log, so it keeps counting with the log switched off and after old entries are deleted. A site that ran an earlier version starts from what its log still holds.
  • The revision counts on the settings screen, in WP-CLI and in the abilities are reused for five minutes rather than counted on every view, and counted again after every sweep. Reuse revision counts for on the Advanced tab keeps them longer, up to a week, for a site or the whole network.
  • For developers: Cleaner::is_sweeping() tells a sweep from a single deletion, and the new revision_retention_revisions_removed action fires once per batch, so work on the delete_post hooks can be done once per batch instead of for every revision.
  • The summary on the Logs tab reads “over the last year” rather than “over the last one year”, and no longer changes the case of a translated word.

1.8.0

  • The walkthrough no longer starts by itself, and the card beside the Settings menu is gone. Start it from the new Start walkthrough link beside Settings on the Plugins screen, tagged New until you have taken it, or from the link at the foot of the settings screen.
  • The walkthrough can be switched off on the Advanced tab, for a site or the whole network, with the RVRT_DISABLE_WALKTHROUGH constant, or with the revision_retention_walkthrough filter.

1.7.0

  • A walkthrough of the settings screen. The first time somebody who manages the plugin opens the admin, a card beside the Settings menu offers it; after an update it comes back with only what is new, and it can always be taken again from the link at the foot of the settings screen.
  • The settings screen, the Dashboard widget and the walkthrough follow the system’s contrast setting, Windows High Contrast and other forced colours included, and the settings screen follows its dark mode.
  • On WordPress 7.1 and later, the plugin registers its status, post types, a preview, the log and a sweep with the Abilities API. They ask for manage_options, are not public and not on the REST API, and never return who ran a sweep, user IDs or post titles.
  • Hardening: the network’s booking form has a nonce of its own, the walkthrough checks the user’s capability before the nonce, and a swept post is only linked when its edit link is an http or https address.

1.6.0

  • A sweep runs once at a time on a site. When the schedule, Run now and WP-CLI met on the same site, they could work through the same batch together and count its revisions twice. Now whichever comes second waits: the schedule tries again a minute later, and the screen and WP-CLI say another sweep is running.
  • A revision that could not be deleted is no longer counted as removed.
  • A scheduled batch books the next one before it starts, so a batch that dies halfway no longer stops the schedule on a site nobody logs in to.
  • When the log table cannot be created, the plugin tries again on the next sweep, rather than writing to a table that is not there from then on.
  • Uninstalling the plugin clears its scheduled events on every site of a network, also when its data is kept.
  • Sweeps the schedule ran show as run by the schedule in the log, never by whoever happened to visit the site at the time.
  • Fewer database queries: the settings are autoloaded from the start, the revisions of a batch are read 25 posts at a time instead of post by post, the revision counts are read once per screen, and the network’s Dashboard widget keeps its overview while sweeps are under way.
  • The sweep buttons keep the keyboard focus while a sweep runs, the WordPress spinner shows beside them, and the outcome is read out by screen readers once. Status text, pills, the progress bar and focus rings meet WCAG 2.2 AA contrast on every admin colour scheme. Tabs answer Home and End.
  • Without JavaScript, the Dashboard widget shows both views and every period, and the settings screen every post type, instead of controls that do nothing.
  • The countdowns pause while the browser tab is in the background.
  • Code written against the class names up to 1.5.0, Acato\RevisionRetention\Settings for instance, keeps working: the classes moved to Acato\RevisionRetention\Admin and Acato\RevisionRetention\Includes, and the old names are aliases of the new ones.
  • For developers: the plugin’s classes hook themselves in through ::instance(). Code that created them with new, or called their register() methods, has to use ::instance() instead. The revision_retention_rule, revision_retention_eligible_post_types and revision_retention_excluded_posts filters are unchanged.

1.5.0

  • The time until the next sweep counts down live on the Sweep tab, and so does each event’s next run under Cron events on the Schedule tab. Under an hour it shows minutes and seconds, in the site’s own language, and once the time has passed it says how long ago it was due.
  • The numbers at the top of the settings screen include the time until the next sweep.

1.4.0

  • How often offers every 4 hours, every 12 hours (twice a day) and every 14 days, next to the hourly, daily, weekly and monthly sweeps it already had.
  • How often can also run on chosen days of the week, say Monday and Wednesday: once at a time of day you pick to the minute, every hour at so many minutes past it, or every few hours from a time until midnight. Times are in the site’s timezone, and on a network a site that inherits the schedule inherits its days and times too. wp revision-retention status shows the days and the times.
  • The Dashboard widget says when the next cleanup is planned, today, tomorrow or on a day, and when one is overdue. When WP-Cron is not running, for instance because DISABLE_WP_CRON is set without a server cron job behind it, the widget says so at the top, with a link to the Schedule tab.
  • The network’s Dashboard widget does the same for the whole network: the next cleanup on any site, how many sites are overdue, and the WP-Cron warning.
  • The widget’s chart switches between Daily, Weekly and Monthly bars. It starts on the one that suits the schedule, a bar per week for a weekly sweep and per month for a monthly one, and remembers the choice in the browser. Weeks and months go back as far as the log is kept.
  • Every bar in the chart, in the widget and on the Logs tab, shows what it covers and how many revisions went, when pointed at, focused or clicked. The arrow keys move between the bars.
  • Times always show with a colon, 12:26 rather than 12.26, in the site’s own 12 or 24 hours.
  • The widget and the chart read at WCAG 2.2 AA contrast on every admin colour scheme and with colour blindness, and draw themselves in the system’s colours under Windows High Contrast. The bars can be reached with any pointer without hitting a few pixels, a day with nothing removed is only drawn, and the tooltip can be pointed at and closed with Escape.
  • On a network that holds a single published site, a network administrator’s widget no longer shows a Network tab next to the Site one: the network is the site.

Registro de change completo em WordPress.org →

Capturas de tela

The settings screen, with the policy in force and the time until the next sweep at the top, and every post type's rule and stored revisions below it.
The settings screen, with the policy in force and the time until the next sweep at the…
Preview reporting what the policy would take from each post, and what each post keeps, before anything is deleted.
Preview reporting what the policy would take from each post, and what each post keeps…
The schedule: on which days and at what time the sweep runs, whether WP-Cron is running, how many posts it looks at per batch, and the most it may delete in one.
The schedule: on which days and at what time the sweep runs, whether WP-Cron is running…
The log as a timeline: a bar per day for the last month, and every sweep with who ran it, what it removed per post type, and whether it finished.
The log as a timeline: a bar per day for the last month, and every sweep with who ran it…
The network's Logs tab, which shows every site's log together and names the site each sweep ran on.
The network's Logs tab, which shows every site's log together and names the site each…
The Dashboard widget: the sweeps of the last days, weeks or months, for this site or the whole network, and when the next one is due.
The Dashboard widget: the sweeps of the last days, weeks or months, for this site or the…

Para desenvolvedores

Este é o seu plugin? Mostre os números.

Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.

Selo de Instalações Ativas Selo de classificação Distintivo de pontuação de saúde

Best Revision Retention alternatives

Todos os plugins de limpeza →
Alternativas
Classificação Plugin Instalações ativas Classificação Atualizada Saúde
1 Wp-sweep Wp-sweep O WP-Sweep permite que você limpe dados não utilizados, órfãos e duplicados em seu WordPress. isso… por Lester Chan 100K+ ★★★★★★★★★★ 4.7 (138) 3 meses atrás 85
2 Revisões simples excluem Revisões simples excluem Exclua as revisões de uma postagem uma por uma ou todas de uma vez, do Editor de Blocos, do… Por Brice Capobianco 10K+ ★★★★★★★★★★ 4.9 (50) 2 meses atrás 63
3 Exclua postagens duplicadas Exclua postagens duplicadas Livre-se de postagens e páginas duplicadas (qualquer tipo de postagem) em seu blog com manual ou automático… Por Lars Koudal 10K+ ★★★★★★★★★★ 4.8 (153) 2 meses atrás 89
4 Limpador de banco de dados: limpeza, otimização e reparo Limpador de banco de dados: limpeza, otimização e reparo Limpe e otimize seu banco de dados WordPress: revisões, transientes, carregamento automático, órfão… Por Jordy Meow 10K+ ★★★★★★★★★★ 5 (150) 1 mês atrás 90
5 Otimizador de carregamento automático AAA Otimizador de carregamento automático AAA Localize e corrija as opções de carregamento automático inchado, deixando seu banco de dados WordPress inchado pelo planejador de progresso 9K+ ★★★★★★★★★★ 4.6 (25) 2 semanas atrás 76
6 FreeSoul Desativar plugins FreeSoul Desativar plugins Carregue plugins somente onde você precisar deles. Sem inchaço, sem conflitos, mais velocidade. Desativar… por José Mortellaro 8K+ ★★★★★★★★★★ 4.8 (105) 23 horas atrás 92
7 Regenerar e selecionar Cortar Imagem Regenerar e selecionar Cortar Imagem Gerenciamento avançado de imagens, registrar novos sub-tamanhos, subdimensionar detalhes, regenerar e… Por Iulia Cazan 7K+ ★★★★★★★★★★ 4.7 (58) 24 horas atrás 77
8 Otimize o redimensionamento de imagens Otimize o redimensionamento de imagens O plugin otimiza o processo de geração de tamanhos de imagem personalizados em WordPress e oferece um… por Originalex 5K+ ★★★★★★★★★★ 4.6 (45) 9 anos atrás 44
9 Conteúdo específico para dispositivos móveis – personalize a versão para celular sem redirecionamentos Conteúdo específico para dispositivos móveis Conteúdo específico para dispositivos móveis permite criar páginas e publicar conteúdos projetados para… por José Mortellaro 4K+ ★★★★★★★★★★ 4.8 (31) 1 mês atrás 73
10 DietPress – Cache de página, otimização de velocidade e desempenho DietPress – Cache de página, otimização de velocidade e desempenho Cache da página, cache do navegador, adiar JS, CSS crítico, carga lenta e limpeza WordPress. Velocidade… Por Fernando Tellado 2K+ ★★★★★★★★★★ 5 (40) 3 semanas atrás 92

FAQ

Revision Retention: quick answers

Respostas diretas, extraídas de dados ao vivo WordPress.org.

Fonte: WordPress.org

Is Revision Retention free?

Yes. Revision Retention is free to download and use from the official WordPress.org plugin directory.

Is Revision Retention safe to use in 2026?

Revision Retention is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 1 day ago, and scores 64/100 on our health check.

How many websites use Revision Retention?

Revision Retention is active on <10 WordPress websites and has been downloaded 1,498 times since it launched in September 2026. It was downloaded 825 times in the last 30 days.

Does Revision Retention work with WordPress 7.1?

Yes. The developer has tested Revision Retention up to WordPress 7.2, the latest release. It requires WordPress 6.7 or newer.

What PHP version does Revision Retention need?

Revision Retention requires PHP 8.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Revision Retention last updated?

The latest version, 1.9.0, was released on December 3, 2026 (1 day ago).

Who makes Revision Retention?

Revision Retention is developed and maintained by Acato.

What are the best alternatives to Revision Retention?

The most popular alternatives to Revision Retention are WP-Sweep (100K+ installs), Simple Revisions Delete (10K+ installs) and Delete Duplicate Posts (10K+ installs).

Alimentado por PageForge

Um modelo e uma planilha. Uma página real para cada pesquisa.

PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.

  • CSV e XLSX, mais Google Sheets em Profissional e Empresarial
  • Seu próprio título, URL, SEO campos e esquema para cada página
  • Funciona com o editor de blocos, Elementor, Divi e Avada
  • Gratuito em WordPress.org, sem cartão de crédito

↑↓ mover↵ abrir