Before deploying, artisan commands like config:cache, route:cache, and view:cache precompile configuration, routes, and views into single files for faster bootstrapping. Opcache should be enabled at the PHP level, and composer install --optimize-autoloader --no-dev generates an optimized class map. Laravel Octane can further boost performance by keeping the application booted in memory across requests using Swoole or RoadRunner.
← Laravel theorytheory 0/50 · 0%
Performance · hard
44. Performance Optimisation & Caching Config
Preparing Laravel for production.
Check your understanding
1. What does 'php artisan config:cache' do?
2. What does Laravel Octane provide?