2.8.4.2.4. Clear Laravel system cache

Attention!

The methods listed above do not clear the cache in users' browsers on the site and do not affect the manually configured caching system.
  1. Connect to the hosting via SSH.
  2. Go to the project directory:
    cd ~/example.com/www/
  3. To clear the desired cache, run the corresponding command:
    • Reoptimization of the loader class:
      /usr/local/php73/bin/php artisan optimize
    • Clearing the app cache:
      /usr/local/php73/bin/php artisan cache:clear
    • Clearing the route cache:
      /usr/local/php73/bin/php artisan route:cache
    • Clearing the view frontend cache:
      /usr/local/php73/bin/php artisan view:clear
    • Clearing the configuration cache:
      /usr/local/php73/bin/php artisan config:cache
Content

    (1)