Skip to content

Commit 6b401ab

Browse files
committed
Reverted the cache:clear warm up deprecation
1 parent d260a11 commit 6b401ab

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

configuration/override_dir_structure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ You also need to change the ``extra.symfony-web-dir`` option in the
216216

217217
.. code-block:: terminal
218218
219-
$ php bin/console cache:clear --no-warmup --env=prod
219+
$ php bin/console cache:clear --env=prod
220220
$ php bin/console assetic:dump --env=prod --no-debug
221221
222222
Override the ``vendor`` Directory

console/usage.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ By default, console commands run in the ``dev`` environment and you may want to
1212
change this for some commands. For example, you may want to run some commands in
1313
the ``prod`` environment for performance reasons. Also, the result of some
1414
commands will be different depending on the environment. For example, the
15-
``cache:clear`` command will clear the cache for the specified environment only.
16-
To clear the ``prod`` cache you need to run:
15+
``cache:clear`` command will clear and warm up the cache for the specified
16+
environment only:
1717

1818
.. code-block:: terminal
1919
20-
$ php bin/console cache:clear --no-warmup --env=prod
20+
# clear (and warm up) the cache of the 'prod' environment
21+
$ php bin/console cache:clear --env=prod
2122
2223
# this is equivalent:
2324
$ php bin/console cache:clear --no-warmup -e prod

deployment.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,7 @@ Make sure you clear and warm-up your Symfony cache:
170170

171171
.. code-block:: terminal
172172
173-
$ php bin/console cache:clear --env=prod --no-debug --no-warmup
174-
$ php bin/console cache:warmup --env=prod
173+
$ php bin/console cache:clear --env=prod --no-debug
175174
176175
E) Dump your Assetic Assets
177176
~~~~~~~~~~~~~~~~~~~~~~~~~~~

reference/dic_tags.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -502,11 +502,6 @@ Cache warming occurs whenever you run the ``cache:warmup`` or ``cache:clear``
502502
command (unless you pass ``--no-warmup`` to ``cache:clear``). It is also run
503503
when handling the request, if it wasn't done by one of the commands yet.
504504

505-
.. versionadded:: 3.3
506-
Starting from Symfony 3.3, the warm-up part of the ``cache:clear`` command
507-
is deprecated. You must always pass the ``--no-warmup`` option to
508-
``cache:clear`` and use ``cache:warmup`` instead to warm-up the cache.
509-
510505
The purpose is to initialize any cache that will be needed by the application
511506
and prevent the first user from any significant "cache hit" where the cache
512507
is generated dynamically.

0 commit comments

Comments
 (0)