user image

Eslam Zedan
Published in : 2022-03-02

Laravel clear cache files manually

Laravel

Hello,

I am using a shared host and I want to clear cache files so I can not connect with SSH to run 

php artisan cache:clear

So is there are manually way to delete these files manually?

thanks,

Comments

Rakshit Date : 2022-03-02

Best answers

34

Best answers

34

'php artisan cache:clear' will not clear the cache.

 

But what you can do, is follow below path and rename the file.

  • Navigate to your ‘laravel_dir/bootstrap/cache’
  • Rename your 'config.php' file to 'config.php_1'
  • Reload your application.

It will work for sure if you are using laravel v5+

Eslam Zedan Date : 2022-03-02

Thank you it is working

Leave a comment

Join us

Join our community and get the chance to solve your code issues & share your opinion with us

Sign up Now

Related posts

Laravel API POST method returns 419
Publish date: 2022-08-03 | Comments: 1
Undefined Variable problem on Laravel 9.x
Publish date: 2022-03-06 | Comments: 3
[solved] All assets in laravel storage returns 404
Publish date: 2021-12-14 | Comments: 2
How can I validate recaptcha in Livewire class ??
Publish date: 2022-02-23 | Comments: 2
API CORS error in Laravel 9x
Publish date: 2022-08-03 | Comments: 2