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 cache resolve ? #966

Closed
lucFM opened this issue Jul 27, 2017 · 3 comments
Closed

Force cache resolve ? #966

lucFM opened this issue Jul 27, 2017 · 3 comments

Comments

@lucFM
Copy link

lucFM commented Jul 27, 2017

Q A
Bug Report? no
Feature Request? yes
BC Break Report? no
RFC? no
Imagine Bundle Version 1.8.0

Hi, is there a way to force cache resolve ?
I would like to re generate all my thumbnails without remove them.

Thanks

@robfrawley
Copy link
Collaborator

robfrawley commented Jul 27, 2017

I actually needed exactly the same thing recently and had amended the console command to accomplish it. I turned my temporary code into a proper pull request in #967 --- see how that works for you with the added option --force (which will force the resolved image to be regenerated, regardless of cache). If you want to do this in a batch fashion, you can do something like:

for f in "$(ls path/to/images/*.jpg)"; do
  bin/console liip:imagine:cache:resolve --filter=my_filter_name "${f}"
done

@robfrawley
Copy link
Collaborator

An option to force resolution (regardless of the cache state) has been added to the console command (with the addition of the --force CLI option) as #967 for the 1.x branch (merged) and #981 for the 2.x branch (in review).

@lucFM
Copy link
Author

lucFM commented Sep 6, 2017

awesome !

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