[英]How to reset Phusion passenger Ruby on Rails cache?
How can I remove the cache of my rails webapp ? 如何删除rails webapp的缓存?
I'm going CRAZY ! 我要疯了 !
Running passenger with nginx, this was the only solution that worked for me. 使用nginx运行乘客,这是唯一对我有用的解决方案。 On the server, run: 在服务器上,运行:
passenger-config restart-app
See: https://www.phusionpassenger.com/library/admin/nginx/restart_app.html 请参阅: https : //www.phusionpassenger.com/library/admin/nginx/restart_app.html
Have you try this? 你试试这个吗? Rails.cache.clear
You maybe using some other cache store, if so rake tmp:cache:clear
will do nothing since no cached on the file system. 您可能正在使用其他一些缓存存储,如果是这样, rake tmp:cache:clear
将不执行任何操作,因为文件系统上没有缓存。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.