[英]How to clear the configuration cache in Symfony2?
I am using Symfony2. 我正在使用Symfony2。 I have a
config.yml
with users setting. 我有一个
config.yml
与用户设置。 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?
我要怎么做才能看到生产中的配置更改?
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. 如果它不起作用,请清除缓存文件夹的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.