Performance settings.
WHAT TO CACHE
Configuration Routes Events Compiled templates
WHY
It removes work repeated on every request.
WHAT TO ALSO DO
Optimise the Composer class loader Ensure the opcode cache is enabled
WHAT THE OPCODE CACHE DOES
Stores compiled PHP, removing recompilation on every request.
WHAT ELSE MATTERS
Database indexes Avoiding query multiplication Caching expensive results Serving static assets through the web server
WHAT TO CHECK
Query count per request Response time for the most visited pages Memory used per request
WHAT TO REMEMBER ABOUT CACHING CONFIGURATION
The environment file is no longer read.
Anything reading it directly returns nothing.
WHAT TO DO AFTER ANY CONFIGURATION CHANGE
Rebuild the cache.
WHAT TO AVOID IN PRODUCTION
Debug mode Development dependencies Verbose logging
WHAT TO MEASURE
Before and after, so you know whether it helped.