Skip to content

Commit 1bee3d9

Browse files
committed
Reword
1 parent 2f77355 commit 1bee3d9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

setup/upgrade_major.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,15 +182,18 @@ Next, use Composer to download new versions of the libraries:
182182
183183
$ composer update "symfony/*"
184184
185-
It's also recommended to clear the cache after updating to a new major version:
185+
A best practice after updating to a new major version is to clear the cache.
186+
Instead of running the ``cache:clear`` command (which won't work if the application
187+
is not bootable in the console after the upgrade) it's better to remove the entire
188+
cache directory contents:
186189

187190
.. code-block:: terminal
188191
189-
# this deletes the development cache in your local machine
190-
$ php bin/console cache:clear
192+
# run this command on Linux and macOS
193+
$ rm -rf var/cache/*
191194
192-
# also delete the production cache in your local machine
193-
$ APP_ENV=prod php bin/console cache:clear
195+
# run this command on Windows
196+
$ rmdir /s /q var\cache\*
194197
195198
.. include:: /setup/_update_dep_errors.rst.inc
196199

0 commit comments

Comments
 (0)