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

5

5

I've tried restarting apache and the cached pages still appear, so there must be a folder someplace. I don't have a 'public/cache', so what other places should I look? Is there a URL flag that could trigger this effect as well?

Bussell answered 22/9, 2008 at 20:47 Comment(0)
M
9

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

touch /webapps/mycook/tmp/restart.txt

See the docs

Margy answered 23/9, 2008 at 3:28 Comment(1)
Yup, that causes a restart of the site, which saves all the other sites from restarting.Bussell
B
1

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.

Bussell answered 22/9, 2008 at 22:2 Comment(0)
I
0

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?

Inamorato answered 22/9, 2008 at 21:32 Comment(0)
C
0

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.

Chapnick answered 19/1, 2018 at 7:53 Comment(0)
S
-2

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.

Sulfapyrazine answered 23/9, 2008 at 3:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.