Rails Cache Clearing

匿名 (未验证) 提交于 2019-12-03 03:03:02

问题:

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

回答1:

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 Cache Clearing
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!