加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Rails缓存清除

发布时间:2020-12-17 02:58:39 所属栏目:百科 来源:网络整理
导读:我在我的生产环境中有这个: # The production environment is meant for finished,"live" apps.# Code is not reloaded between requestsconfig.cache_classes = true 如何完全清除缓存,以便我部署的更改生效?我已将内容添加到其中一个页面,但它似乎没有出
我在我的生产环境中有这个:

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

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

谢谢,

丹尼

解决方法

如果您使用乘客,则需要创建文件tmp / restart.txt或更新其修改时间(如果已经存在):

touch tmp/restart.txt

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读