Performance Optimization Guide
How to optimize your DrupalReady site for speed using the performance recipe, caching, and CDN configuration.
Apply the Performance Recipe
Every template includes a performance recipe:
lando drush recipe recipes/performance
This enables page caching, CSS/JS aggregation, lazy loading, and optimized Twig settings.
Production Settings
Include the performance settings file in your settings.php:
php
if (file_exists($app_root . '/' . $site_path . '/settings.performance.php')) {
include $app_root . '/' . $site_path . '/settings.performance.php';
}This configures 1-hour page cache, gzip compression, and disables Twig debug.
Redis Caching
For high-traffic sites, enable Redis by uncommenting the Redis configuration in settings.performance.php. Install the Redis module with composer require drupal/redis.
CDN Configuration
Place Cloudflare or your preferred CDN in front of your site. The performance settings include reverse proxy configuration you can uncomment.
Image Optimization
Templates include the Focal Point module for smart image cropping and the Lazy module for deferred image loading. Use responsive image styles configured in the theme for optimal delivery.