-
Notifications
You must be signed in to change notification settings - Fork 641
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
Option to limit number of saved entry versions/revisions #926
Comments
Not sure if this is something on the docket for Craft 3.x but it would really help a handful of sites we have. One of our sites has ~900 MB in the I know about @carlcs's awesome plugin to clear this out, but it'd be nice to selectively purge this area and handle it in a first-party way. |
You all are awesome! Can't wait for 3.2! 💪 |
Only took us 3.5 years :) |
I am not super comfortable with reading the yii classes. Like this? config/general.php return [
'*' => [
'maxRevisions' => 5
]
] Because I had a post where I already had 12 drafts and I expected them to be cut down to 5. Or will it only happen for new drafts? |
@Jones-S Craft only enforces the setting when a new revision is created. |
When entry revisions are turn on for a section there is currently no method to cap/limit the number of revisions saved in the database so the entry versions table continues to grow indefinitely and therefore the database size also.
If there could be either a field in the section settings page to enter a number, or a general config setting to do the same that would be really useful.
The text was updated successfully, but these errors were encountered: