【问题标题】:Rails Cache ClearingRails 缓存清除
【发布时间】:2011-02-20 07:54:49
【问题描述】:

我的生产环境中有这个:

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

如何彻底清除缓存以使我部署的更改生效?我已将内容添加到其中一个页面,但它似乎没有显示,因为我将 config.cache_classes 设置为等于 true。

谢谢,

丹尼

【问题讨论】:

    标签: ruby-on-rails caching


    【解决方案1】:

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

    touch tmp/restart.txt
    

    【讨论】:

      猜你喜欢
      • 2015-11-21
      • 2023-03-03
      • 2023-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-17
      • 2012-05-13
      • 2017-03-18
      相关资源
      最近更新 更多