Rails Cache Clearing

允我心安 提交于 2019-12-21 05:38:06

问题


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


来源:https://stackoverflow.com/questions/2847859/rails-cache-clearing

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