eighteen73 / orbit

Opinionated overrides for default WordPress behaviour.
MIT License
3 stars 1 forks source link

Auto clear revisions in a specified timeframe #14

Open DanielHudson2 opened 2 months ago

DanielHudson2 commented 2 months ago

Post revisions can quickly grow and start to cause some issues.

Specific example, a site which had ACF repeater fields with a lot of data in them on its homepage had over 600 revisions, the site was getting out of memory errors when loading the edit page for it because it was loading all the meta for the revisions.

Unsure if this is really an issue with block editor sites but it is a potential one for "classic" sites which utilise ACF for their content.

Also makes sense to have a function to clean old data up