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

Regenerate Image Order #82

Closed
turtlepod opened this issue Jun 29, 2018 · 4 comments
Closed

Regenerate Image Order #82

turtlepod opened this issue Jun 29, 2018 · 4 comments

Comments

@turtlepod
Copy link

I was working on a large site, 150+k images. and the images need regenerated.
I ran the script for 4-5 days, and it failed at around 80%.

I think it currently process the media entry one by one using ASC order (by IDs) ?

It would be nice to be able to switch the order.

@schlessera
Copy link
Member

Adding a way to switch the order seems rather arbitrary to me and only solves the problem you're facing as a side-effect.

I was already thinking of accepting ranges for all the commands that take one or more IDs.

So, you could do something like wp media regenerate 25000- to regenerate all existing IDs of 25000 and higher, or something like wp media regenerate 200-300 to regenerate all existing IDs between 200 and 300.

I think that would solve your particular problem (restarting after the point of failure) and would probably fulfil some other use cases as well.

@turtlepod
Copy link
Author

That would be a great solution.

@ghost
Copy link

ghost commented Jul 5, 2018

Same problem here!

@schlessera
Copy link
Member

Closing in favor of wp-cli/ideas#105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants