On 7/13/05, Michael Champanis <michael-MXk1+JRFB8SsTnJN9+BGXg@public.gmane.org> wrote:> I''m developing on an Apache/FCGI/Rails 0.13.1 system, using development > mode, and the source keeps getting cached.Just out of curiousity, how are you specifying that you are are in dev mode? It is possible you specified dev mode in one place, but production in another. Matt
I''m developing on an Apache/FCGI/Rails 0.13.1 system, using development mode, and the source keeps getting cached. Every few times I make a change I have to kill all dispatch.fcgi''s, restart apache, and clear my sessions - if I don''t, Apache serves old source code that has since been changed. I previously was running 0.12.1, and never had this problem. Anyone else experiencing this? Michael
David Heinemeier Hansson
2005-Jul-13 15:06 UTC
Re: 0.13.1: Development mode source caching problems
> > I''m developing on an Apache/FCGI/Rails 0.13.1 system, using development > > mode, and the source keeps getting cached. > > Just out of curiousity, how are you specifying that you are are in dev > mode? It is possible you specified dev mode in one place, but > production in another.Try echoing Dependencies.mechanism -- it should be :load, if it''s :require, something is not right. -- David Heinemeier Hansson http://www.loudthinking.com -- Broadcasting Brain http://www.basecamphq.com -- Online project management http://www.backpackit.com -- Personal information manager http://www.rubyonrails.com -- Web-application framework
Michael Champanis
2005-Jul-14 15:53 UTC
Re: 0.13.1: Development mode source caching problems
>>>I''m developing on an Apache/FCGI/Rails 0.13.1 system, using development >>>mode, and the source keeps getting cached. >> >>Just out of curiousity, how are you specifying that you are are in dev >>mode? It is possible you specified dev mode in one place, but >>production in another. > > > Try echoing Dependencies.mechanism -- it should be :load, if it''s > :require, something is not right.I''m specifing ''development'' in environment.rb, and Dependencies.mechanism returns ''load''. I''m not sure how to reproduce this entirely, but I was working with date_select and Time.now at the time - something like: Initially: @moo.dateofthing = Time.now - 60*60*24 --> date_select in view gives 2005-07-13 Change: @moo.dateofthing = Time.now --> date_select in view still gives 2005-07-13 Refresh, shift-refresh, close firefox, browse to page again - nothing worked - but if I restarted apache and went to the page it showed 2005-07-14 (the expected date).