问题
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