Doo Dah
Doo Dah

Reputation: 4029

How to clear the configuration cache in Symfony2?

I am using Symfony2. I have a config.yml with users setting. In my development environment, if I change the list of users and refresh the browser, I see the change immediately. In production, I do not see the change, even though I have tried clearing the cache. What do I need to do to see the configuration change in production?

Upvotes: 0

Views: 13719

Answers (1)

Philippe Boissonneault
Philippe Boissonneault

Reputation: 3949

Try to clear the production cache with this command :

php app/console cache:clear --env=prod --no-debug

It it doesn't work, clear the content of the cache folder.

Upvotes: 12

Related Questions