Performance Tweaks
This page provides some basic performance tweaks for running a Shopware project with ddev.
Even with the default settings, you will notice a surprisingly good performance in terms of UI response times. If you want to spice things up a bit, follow these instructions.
Add a file .ddev/php/shopware.ini
with the following content:
These settings just implement Shopware’s performance recommendations https://developer.shopware.com/docs/guides/hosting/performance/performance-tweaks.html#php-config-tweaks. The only exception being the value for opcache.validate_timestamps. Disabling it will result in changes to your source files being un-noticed by the web container.
Add a file .ddev/mysql/my.cnf with the following content:
The above settings remove the ONLY_FULL_GROUP_BY sql mode and set the group concat max len to 320000. Again, these are Shopware’s recommendations https://developer.shopware.com/docs/guides/hosting/performance/performance-tweaks.html#mysql-configuration.
Eventually, add some lines to your .env.local file:
See https://developer.shopware.com/docs/guides/hosting/performance/ for more details and explanations.
Last updated