Option to limit number of saved entry versions/revisions #926
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.
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 am not super comfortable with reading the yii classes.
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?