A recipe to manage default performance optimization modules, caching configurations, and speed enhancements for Varbase.
This recipe provides core performance features including:
- Page caching with a 15-minute default lifetime optimised for Lighthouse
- CSS and JS preprocessing and aggregation
- ImageMagick as the default image toolkit for broader format support
- WebP image conversion for optimised delivery
- Image API optimization pipeline
Add the recipe using composer:
composer require drupal/varbase_performance_base:~1.0.0
Change directory to /web or /docroot
Run the Drupal recipe bash script:
bash core/scripts/drupal recipe recipes/contrib/varbase_performance_base
or
Run the Drush recipe command:
ddev drush recipe ../recipes/varbase_performance_base
- Page cache lifetime set to 900 seconds (15 minutes)
- Dynamic page cache enabled for authenticated users
- CSS preprocessing and aggregation enabled
- JS preprocessing and aggregation enabled
- ImageMagick v6 configured as the default image toolkit
- Image quality set to 75 for a balance between file size and visual quality
- WebP conversion enabled via imageapi_optimize_webp
- ImageAPI optimize pipeline for automated image processing
GPL-2.0-or-later