Clear cache for prod. env. in Orocommerce

  caching, clear-cache, orocommerce, symfony, yaml

I am trying to make changes to my .yml files during the run time and the php bin/console cache:clear command must be executed so these changes can affect the application.

I tried running the cache:clear command with the Controller during the run time, but I got the same error every time in different methods.


"warning: ini_set (): A session is active. You cannot change the
session module’s ini settings at this time at

I am aware that executing the cache:clear command during the run time is not a good method as seen in the error, so are there any other ways to execute this command programmatically or to see the effect of changes in .yml files during the execution of the application without using console?

Source: Symfony Questions