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:
-
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-secretswill not run. -
There is no need to enable the advanced setting Run clear cache command after generation. When disabled,
php bin/console cache:clearwill not run. This is the command that takes time because of the full rebuild. Read Clearing Symfony Cache for more info.