Rails缓存清除(Rails Cache Clearing)

编程入门 行业动态 更新时间:2024-10-23 15:19:55
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 = 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.

Thanks,

Danny

最满意答案

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

touch 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

更多推荐

本文发布于:2023-08-01 17:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1361446.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:缓存   Rails   Clearing   Cache

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!