8月 5, 2019 -
php开发
laravel 常用优化已关闭评论


laravel 常用优化
1, 压力测试、集成测试,系统测试,性能测试
2、 正式环境关闭debug,设置debug为false
开启OPcache
路由缓存:php artisan route:cache
配置缓存:php artisan config:cache
去掉不必要的中间件
预加载:with
缓存部分查询结果:比如[……]