Welcome Guest | Login

Is It Caching?

Hi, I just uploaded a Rails application and it's going pretty fine, except that today I uploaded a new version of scaffold.html.erb and didn't see any changes when I reloaded my browser!

To make sure I wasn't making a mistake,
1) I deleted ALL layout files in the app/views/layouts directory but it was still loading!
2) I deleted my cache in my browser
3) I even deleted the scaffold.css and when I reloaded, it didn't apply the CSS.. but it was still showing the old scaffold.html.erb :eek:
2) I made sure I didn't enable caching in my app by looking in the environment.rb.. I don't even know how to do enable it!

I'm stumped, and I need your help.  Thank you.

2008-01-09 10:25 PM

The caching might be enabled on the application. You can disable it at ../config/environments/production.rb.

2008-01-09 10:54 PM

Regards,
Rahul
My goodness!  Thank you for your answer.  I didn't think to look at that file!

Thanks again.

2008-01-10 09:48 AM

I'm having the same problem, again.. but this time, I was more careful in trying to figure out what was wrong.

1) I practically turned of all caching in production.rb: http://pastie.org/265025
2) I made sure I had no scaffold.rhtml and html.erb in app/views/layout - I only have the html.erb.
3) I deleted the scaffold.html.erb and it still loads the old version in the browser.
4) I rake rake tmp:clear
5) I checked the tmp/cache and public folders to make sure I wasn't caching.
6) I consistently ran killall dispatch.fcgi

I'm stumped again :o

2008-09-03 12:41 AM

I could see that your site is running on Mongrel. You need to restart your Mongrel instance instead of killing dispatch.fcgi.

2008-09-03 04:45 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!