forked from liip/LiipImagineBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebased commands document patch, see liip#533
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Commands | ||
|
||
## Remove cache | ||
|
||
|
||
All cache for a given paths will be removed: | ||
|
||
``` bash | ||
$ php app/console liip:imagine:cache:remove path1 path | ||
``` | ||
|
||
|
||
If you use --filters parameter, all cache for a given filters will be lost: | ||
|
||
``` bash | ||
$ php app/console liip:imagine:cache:remove --filters=thumb1 --filters=thumb2 | ||
``` | ||
|
||
You can combine these parameters: | ||
|
||
``` bash | ||
$ php app/console liip:imagine:cache:remove path1 path2 --filters=thumb1 --filters=thumb2 | ||
``` | ||
|
||
Cache for all paths and filters will be lost when executing this command without parameters : | ||
|
||
``` bash | ||
$ php app/console liip:imagine:cache:remove | ||
``` | ||
|
||
## Resolve cache | ||
|
||
|
||
``` bash | ||
$ php app/console liip:imagine:cache:resolve path1 path2 --filters=thumb1 | ||
``` | ||
|
||
Cache for the two paths will be resolved using the passed filter. | ||
As a result you will get: | ||
``` bash | ||
http://localhost/media/cache/thumb1/path1 | ||
http://localhost/media/cache/thumb1/path2 | ||
``` | ||
|
||
You can pass few filters: | ||
|
||
``` bash | ||
$ php app/console liip:imagine:cache:resolve path1 --filters=thumb1 --filters=thumb2 | ||
``` | ||
|
||
As a result you will get: | ||
``` bash | ||
http://localhost/media/cache/thumb1/path1 | ||
http://localhost/media/cache/thumb2/path1 | ||
``` | ||
|
||
If you omit --filters parameter then to resolve given paths will be used all configured and available filters in application: | ||
``` bash | ||
$ php app/console liip:imagine:cache:resolve path1 | ||
``` | ||
|
||
As a result you will get: | ||
``` bash | ||
http://localhost/media/cache/thumb1/path1 | ||
http://localhost/media/cache/thumb2/path1 | ||
``` | ||
|
||
[Back to the index](index.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters