Rails缓存清除(Rails Cache Clearing)
我在我的生产环境中有这个:
# The production environment is meant for finished, "live" apps. # Code is not reloaded between requests config.cache_classes = true如何完全清除缓存,以便我部署的更改生效? 我已将内容添加到其中一个页面,但它似乎没有出现,因为我将config.cache_classes设置为true。
谢谢,
丹尼
I have this in my production environment:
# The production environment is meant for finished, "live" apps. # Code is not reloaded between requests config.cache_classes = trueHow do I completely clear the cache so changes I deploy take effect? I have added content to one of the pages but it doesnt seem to show up since I set the config.cache_classes to equal true.
Thanks,
Danny
最满意答案
如果您使用乘客,您需要创建文件tmp/restart.txt或更新其修改时间(如果它已经存在):
touch tmp/restart.txtIf you use passenger you need to create the file tmp/restart.txt or update its modification time if it's already there:
touch tmp/restart.txt更多推荐
发布评论