views:

36

answers:

1

I have been given a project of editing a website which is coded in RoR.

However, the changes which i make in the view file is not visible immediately after a hard refresh but after 15-20 mins, the changes reflect. I am guessing this has something to do with the RoR caching system.

Can someone please help me out ? The changes i made are purely HTML based like changing HTML attributes, filenames etc...

+4  A: 

When the app is running in production environment, it caches everything in memory. You need to restart the application to reread all those files.

If you're running passenger you can restart the app by updating/touching/creating the tmp/restart.txt file. It's enough if you just update the modification timestamp:

touch tmp/restart.txt
Tomas Markauskas
Yes, im running mod_passenger.However, there is no restart.txt file
WarDoGG
The file will be created by *touch*, Passenger will then notice the file, remove it and restart your app.
Lars Haugseth