Rails缓存清除

4

我在生产环境中有这个:

# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true

如何完全清除缓存,以便我部署的更改生效?我已经在其中一个页面上添加了内容,但似乎没有显示出来,因为我将config.cache_classes设置为true。

谢谢,

Danny

1个回答

6
如果您使用Passenger,您需要创建文件tmp/restart.txt或者更新它的修改时间(如果已经存在):
touch tmp/restart.txt

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接