Performance: Config caching
HIGH IMPACT
Config caching speeds up application boot by loading all config files as a single cached file, reducing file reads and parsing.
php artisan config:cache // Application loads a single cached config file on every request
php artisan serve // Application loads each config file separately on every request
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| No config caching (many config files loaded) | N/A (server-side) | N/A | Blocks initial paint due to slower server response | [X] Bad |
| Config caching (single cached config file) | N/A (server-side) | N/A | Faster server response enables quicker initial paint | [OK] Good |