How to reset Phusion passenger Ruby on Rails cache?
Asked Answered
L

2

6

How can I remove the cache of my rails webapp ?

I'm going CRAZY !

Loadstone answered 17/6, 2011 at 16:45 Comment(4)
You can generally run touch tmp/restart.txt from your rails app root to restart the passenger server. What issues are you experiencing?Kannada
A restart should clear any cache. You might have outdated code on the server.Stiegler
Are you talking about the cache for your code or the view cache?Lentigo
Going through same issue. turned off all caching, touched restart.txt, still serving cached file. rails tmp/cache is empty. Does Phusion have an explicit folder where I can just go in and delete cached files myself?Giggle
B
4

Running passenger with nginx, this was the only solution that worked for me. On the server, run:

    passenger-config restart-app

See: https://www.phusionpassenger.com/library/admin/nginx/restart_app.html

Basanite answered 4/5, 2016 at 13:19 Comment(0)
M
2

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.

Monkshood answered 21/5, 2014 at 9:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.