Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Upgrading] Recommend to delete cache when upgrading to a major version #19456

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
Jan 26, 2024
Merged
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
13 changes: 13 additions & 0 deletions setup/upgrade_major.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,19 @@ Next, use Composer to download new versions of the libraries:

$ composer update "symfony/*"

A best practice after updating to a new major version is to clear the cache.
Instead of running the ``cache:clear`` command (which won't work if the application
is not bootable in the console after the upgrade) it's better to remove the entire
cache directory contents:

.. code-block:: terminal

# run this command on Linux and macOS
$ rm -rf var/cache/*

# run this command on Windows
C:\> rmdir /s /q var\cache\*

.. include:: /setup/_update_dep_errors.rst.inc

.. include:: /setup/_update_all_packages.rst.inc
Expand Down