简体   繁体   中英

how to clear cache of laravel app in centos server that uses nginx

enter image description herei'm using centos to host my laravel application, when i upload the project first time using git, it will be cached, and when i change any file, changes doesn't apply, i tried all artisan commands that clear cache in laravel but didn't fix the only way is to change the root directory of the application after each single change, is centos caching or nginx or laravel or other software in the server or the browser? even i cleared every thing in public/index.php and put echo 'foo'; and still got old cached data

screenshot of my nginx config file screenshot of my nginx config file

This is possibly directory permission issue you need to grant storage and bootstrap directory 777 permission level. You need to run the following command on the root folder of your app

chmod -R 777 storage 

and

chmod -R 777 bootstrap

Then try to effect your changes.

i tried systemctl restart php-fpm now every thing worked as expected and all changes applied thank you a lot i appreciate your help

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM