简体   繁体   English

如何彻底清除Laravel中的缓存?

[英]how completely clear your cache in Laravel?

I run these commands: php artisan view:clear php artisan route:clear// или (s) php artisan cache:clear php artisan config:clear php artisan config:cache 我运行这些命令: php artisan view:clear php artisan route:clear// или (s) php artisan cache:clear php artisan config:clear php artisan config:cache

But the final cache is cleared only after the reboot nginx and php5-fpm 但是只有在重启nginx和php5-fpm之后才能清除最终缓存

php artisan config:cache doesn't clear cache, but creates config cache . php artisan config:cache不清除缓存,但创建配置缓存 If you'll run first 4 commands from your list, all app cache will be cleared. 如果您将从列表中运行前4个命令,则将清除所有应用程序缓存。

You may also want to clear cache, created by packages or composer or web server, it depends on what are you trying to achieve. 您可能还想清除由包或作曲家或Web服务器创建的缓存,这取决于您要实现的目标。

If you want to clear nginx cache, you can do this by deleting nginx cache directory, for example /var/nginx/cache/ . 如果要清除nginx缓存,可以通过删除nginx缓存目录来完成此操作,例如/var/nginx/cache/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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