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

--force flag for generateimages management command #466

Open
ozren1983 opened this issue May 23, 2018 · 2 comments
Open

--force flag for generateimages management command #466

ozren1983 opened this issue May 23, 2018 · 2 comments

Comments

@ozren1983
Copy link

Today I've ran into an issue where generated images accidentally got deleted from disk, but cache (memcached) still kept info that generated images were created, so generateimages management command didn't generate new images. I know I can clear cache in that case, but didn't feel like messing with memcached since we are using it to store some other data. I ended up overriding generateimages command and adding image_file.generate(force=True).

I think that adding --force flag to generateimages might be useful for such scenarios. It looks like a simple change where generateimages --force would call image_file.generate(force=True), otherwise it would call image_file.generate().

If you agree I'll submit a pull request.

@vstoykov
Copy link
Collaborator

Looks nice. I'm waiting for your PR.

@ArtemBernatskyy
Copy link

+1

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

3 participants