osama_abdullah's avatar

clear cache in centos nginx

i'm using centos to hoste my laravel application, when i upload the project first time it will be cached, and when i change any php files /classes changes doesn't apply, i tried to php artisan cache:clear php artisan route:clear php artisan config:clear php artisan view:clear all this had no effects even restarting nginx the only way is to change the root directory after each single change please help

0 likes
2 replies
bobbybouwmann's avatar
Level 88

This is normally correct on a server because it tries to work as efficiently as possible. Normally when you deploy a new project you also need to restart php-fpm or nginx to see the changes.

The best process in this is developing your application on your local environment and only deploy when your feature is done. On deployment, you restart php-fpm or nginx to see your new changes. In the best case you can automate this as well.

1 like

Please or to participate in this conversation.