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

rebased commands document patch, see #533 #680

Merged
merged 4 commits into from
Dec 28, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions Resources/doc/commands.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
Commands
========

Remove cache
------------

All cache for a given paths will be removed:

.. code-block:: bash

$ php app/console liip:imagine:cache:remove path1 path

If you use ``--filters`` parameter, all cache for a given filters will be lost:

.. code-block:: bash

$ php app/console liip:imagine:cache:remove --filters=thumb1 --filters=thumb2

You can combine these parameters:

.. code-block:: bash

$ php app/console liip:imagine:cache:remove path1 path2 --filters=thumb1 --filters=thumb2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unneeded extra blank line.

Cache for all paths and filters will be lost when executing this command
without parameters:

.. code-block:: bash

$ php app/console liip:imagine:cache:remove

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unneeded extra blank line.

Resolve cache
-------------

.. code-block:: 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:

.. code-block:: text

http://localhost/media/cache/thumb1/path1
http://localhost/media/cache/thumb1/path2

You can pass few filters:

.. code-block:: bash

$ php app/console liip:imagine:cache:resolve path1 --filters=thumb1 --filters=thumb2

As a result you will get:

.. code-block:: text

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:

.. code-block:: bash

$ php app/console liip:imagine:cache:resolve path1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before this line you need a blank line.


As a result you will get:

.. code-block:: text

http://localhost/media/cache/thumb1/path1
http://localhost/media/cache/thumb2/path1
1 change: 1 addition & 0 deletions Resources/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ performance, altered images can be cached locally and in Amazon S3 service.
* :doc:`DataLoaders <data-loaders>`
* :doc:`CacheResolvers <cache-resolvers>`
* :doc:`CacheManager <cache-manager>`
* :doc:`Commands <commands>`