Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reset Phusion passenger Ruby on Rails cache?

How can I remove the cache of my rails webapp ?

I'm going CRAZY !

like image 655
Unitech Avatar asked Jun 17 '11 16:06

Unitech


2 Answers

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

like image 149
nbulkz Avatar answered Oct 23 '22 05:10

nbulkz


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.

like image 40
user800813 Avatar answered Oct 23 '22 03:10

user800813