Slow Generating Script

Do not turn on “production” mode during development. You only need to generate your project in “production” mode once and re-generate the whole site before you deploy the site to your production server.

During development, you use the “development” mode:

  1. There is no need to enable the advanced setting Encrypt secrets, that is for “production” mode only, read Setting Production Connection Info for more info. When disabled, php bin/console app:convert-local-secrets will not run.

  2. There is no need to enable the advanced setting Run clear cache command after generation. When disabled, php bin/console cache:clear will not run. This is the command that takes time because of the full rebuild. Read Clearing Symfony Cache for more info.