-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up revisions in a user-friendly manner #94
Comments
Related WordPress/gutenberg#3656, because hosts may want to help users clean their data up. |
Yes, current Gutenberg behavior makes this very useful and needed. |
I like the idea of "thinning out" revisions. This could be done on a static period basis, for example retaining one revision per month, or it could be done according to the age of the post, for example retaining ten revisions from the history of the post. Cleaning out revisions made before the post was published would help, too. |
I am about to start work on this but, a bit confused with the command structure. I am thinking following command structure. Please let me know your thoughts. (1) wp post revision list (Display all revisions) As @johnbillion already explain, I think we can keep 10 most recent revisions. I am also thinking for flags like Do we also need |
I think the following command structure makes sense:
|
On larger sites, there may be a large number of revisions in the database, causing some amount of bloat. The "easy" way to clean up revisions is to delete all of them. This isn't terribly helpful to the end user, because they may want to keep some revisions around.
It would be helpful to have a revision cleanup command that deleted revisions according to some user-friendly algorithm. For instance, ensure at least a few revisions (spread across the revision timeline) are kept per-post.
The text was updated successfully, but these errors were encountered: