dan*_*mcc 4 caching ruby-on-rails clear
我在我的生产环境中有这个:
# The production environment is meant for finished, "live" apps.
# Code is not reloaded between requests
config.cache_classes = true
Run Code Online (Sandbox Code Playgroud)
如何完全清除缓存,以便我部署的更改生效?我已将内容添加到其中一个页面,但它似乎没有出现,因为我将config.cache_classes设置为true.
谢谢,
丹尼
如果您使用乘客,则需要创建文件tmp/restart.txt或更新其修改时间(如果已存在):
touch tmp/restart.txt
Run Code Online (Sandbox Code Playgroud)