Rails缓存清除 [英] Rails Cache Clearing
本文介绍了Rails缓存清除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的生产环境中有以下内容:
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 = true
如何我是否要完全清除缓存,以便部署的更改生效?我已经向其中一个页面添加了内容,但是由于我将config.cache_classes设置为true,所以它似乎没有显示。
How 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.
谢谢,
Danny
推荐答案
如果使用乘客,则需要创建文件 tmp / restart.txt
或更新其修改时间(如果已存在)
If 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
这篇关于Rails缓存清除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文