How do I clear the cache of Ruby Phusion Passenger in Ubuntu?

情到浓时终转凉″ 提交于 2019-12-05 10:24:41

You need to touch a file to have phusion clear out, like:

touch /webapps/mycook/tmp/restart.txt

See the docs

I'm in development mode.

I discovered I had to restart the apache service and clear the browser cache to get my changes to appear 100% of the time.

First, have you cleared your browsers cache? You can do this through the browser menus, in options somewhere.

The next question I would ask is are you running the app in production or development mode?

For those who come here nowadays

Now there is more abilities to restart passanger from ssh Here is the updated doc

passenger-config restart-app

or

passenger-config restart-app /Users/phusion/testapp

and the old way which can be done if you had only FTP access

touch tmp/restart.txt

this one will be done not immediately, passanger will look for its modified timestamp to be changed to perform restart.

Ctrl+F5 will forcibly reload the page, and all it's linked assets.

It's kind of like clearing the cache for just that one page.

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