Does Symfony 4 somehow save or cache the environment variable parameters in the "prod" environment or does it retrieve them on every request?
My problem is that when I host my Symfony application using Apache, I need to list all the environment variables by defining them all in the VirtualHost
configuration using SetEnv
directives; and I would prefer not having to do that.
I would expect that when using the PHP CLI, I could "compile" the Symfony project by capturing or caching the parameters so that when the application is run through Apache, it uses these "cached" parameters.
Is it doable or the SetEnv
approach is the only one?