Skip to content

Reverted the cache:clear warm up deprecation #9188

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

Merged
merged 1 commit into from
Feb 1, 2018
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
2 changes: 1 addition & 1 deletion configuration/override_dir_structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ You also need to change the ``extra.symfony-web-dir`` option in the

.. code-block:: terminal

$ php bin/console cache:clear --no-warmup --env=prod
$ php bin/console cache:clear --env=prod
$ php bin/console assetic:dump --env=prod --no-debug

Override the ``vendor`` Directory
Expand Down
7 changes: 4 additions & 3 deletions console/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ By default, console commands run in the ``dev`` environment and you may want to
change this for some commands. For example, you may want to run some commands in
the ``prod`` environment for performance reasons. Also, the result of some
commands will be different depending on the environment. For example, the
``cache:clear`` command will clear the cache for the specified environment only.
To clear the ``prod`` cache you need to run:
``cache:clear`` command will clear and warm up the cache for the specified
environment only:

.. code-block:: terminal

$ php bin/console cache:clear --no-warmup --env=prod
# clear (and warm up) the cache of the 'prod' environment
$ php bin/console cache:clear --env=prod

# this is equivalent:
$ php bin/console cache:clear --no-warmup -e prod
Expand Down
3 changes: 1 addition & 2 deletions deployment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ Make sure you clear and warm-up your Symfony cache:

.. code-block:: terminal

$ php bin/console cache:clear --env=prod --no-debug --no-warmup
$ php bin/console cache:warmup --env=prod
$ php bin/console cache:clear --env=prod --no-debug

E) Dump your Assetic Assets
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
5 changes: 0 additions & 5 deletions reference/dic_tags.rst
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,6 @@ Cache warming occurs whenever you run the ``cache:warmup`` or ``cache:clear``
command (unless you pass ``--no-warmup`` to ``cache:clear``). It is also run
when handling the request, if it wasn't done by one of the commands yet.

.. versionadded:: 3.3
Starting from Symfony 3.3, the warm-up part of the ``cache:clear`` command
is deprecated. You must always pass the ``--no-warmup`` option to
``cache:clear`` and use ``cache:warmup`` instead to warm-up the cache.

The purpose is to initialize any cache that will be needed by the application
and prevent the first user from any significant "cache hit" where the cache
is generated dynamically.
Expand Down