craft-deleteentryversions icon indicating copy to clipboard operation
craft-deleteentryversions copied to clipboard

Setup a console command for clearing entry versions?

Open aaronbushnell opened this issue 6 years ago • 4 comments

Thanks for your work on this awesome plugin, @carlcs! I have a couple sites with a pretty substantial amount of versions that need to be cleared out. It'd be awesome if I could run this via the Craft console so things like max_execution_time and memory_limit are bypassed. And so it's easier to trigger them before/after a deploy, etc.

aaronbushnell avatar Apr 05 '19 14:04 aaronbushnell

+1 for this

zizther avatar Jul 15 '19 11:07 zizther

Now that Craft 3.2 has support for maxRevisions in the config I wonder if this is better handled by Craft itself?

aaronbushnell avatar Jul 15 '19 13:07 aaronbushnell

This is true. I presume if you set this, it will delete the remaining ones outside the limit when resaving the entry

zizther avatar Jul 15 '19 13:07 zizther

Correct, @zizther!

aaronbushnell avatar Jul 15 '19 13:07 aaronbushnell