Laravel theorytheory 0/50 · 0%
Performance · hard

44. Performance Optimisation & Caching Config

Preparing Laravel for production.

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.

Check your understanding

  1. 1. What does 'php artisan config:cache' do?

  2. 2. What does Laravel Octane provide?