diff --git a/configuration/override_dir_structure.rst b/configuration/override_dir_structure.rst index 9b95b973194..7eb24df6e84 100644 --- a/configuration/override_dir_structure.rst +++ b/configuration/override_dir_structure.rst @@ -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 diff --git a/console/usage.rst b/console/usage.rst index 38b745b1276..21cdc42751a 100644 --- a/console/usage.rst +++ b/console/usage.rst @@ -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 diff --git a/deployment.rst b/deployment.rst index 7e973f5a427..07df32ecc58 100644 --- a/deployment.rst +++ b/deployment.rst @@ -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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 2272db475ce..ec3907a8114 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -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.