Skip to content
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

Allow entry versions to be limited #5224

Closed
ryanpcmcquen opened this issue Nov 8, 2019 · 1 comment
Closed

Allow entry versions to be limited #5224

ryanpcmcquen opened this issue Nov 8, 2019 · 1 comment

Comments

@ryanpcmcquen
Copy link
Contributor

@ryanpcmcquen ryanpcmcquen commented Nov 8, 2019

Description

Allow entry versions to be limited to a specific number. We have some entries with 100s of versions and this has a significant impact on site performance, especially searching, which takes 30 seconds or more on some types.

Deleting old entry versions has an insane impact on entry searches (making it 30 or more times faster).

It'd be great if Craft allowed a limitation (maybe the last 10 versions, or some arbitrary number), rather than either having versioning, or not having versioning.

Steps to reproduce

  1. Have over 100 versions of an entry.
  2. Search for that entry under its type.

Additional info

  • Craft version: 3.1.x
  • PHP version: 7.2.x
@brandonkelly

This comment has been minimized.

Copy link
Member

@brandonkelly brandonkelly commented Nov 8, 2019

We added the maxRevisions config setting in Craft 3.2, which gets enforced each time a new revision is created. (We’ll also be adding a CLI command in Craft 3.4 to prune out extra revisions across the board if maxRevisions is ever decreased – #4851.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.