What is the best way to clean the cache without running the console command?
caching, php, symfony
Solution
You can use the console command via `exec()`:
exec("php /my/project/app/console cache:clear --env=prod");
Or simply empty the cache/ folder if you don't want to use the console command.
Problem
In the admin panel of my project, I programmed the ability to change the database name to use. I wrote the new database name in the `parameters.ini`, and after that the cache had to be cleaned to load the new config. What is the best way to clean the cache without running the console command? Or is there another best practise how to change the current db.