wbsurfver-/E1597aS9LQAvxtiuMwx3w@public.gmane.org
2007-Nov-13 19:00 UTC
How can I debug fragment cache or expire all ?
I have been using fragment caching and it seemed like it was working pretty well. I added some things and now it is not working. Could I have screwed it up if I deleted the cache files by hand that it had in the temp directory ? Even if I did that, when I re execute the statement: expire_fragment(%r{ticket/get_page.*}) . I would think I would be back in business. I all the the cache this: cache(:action => ''get_page'', :page => @page, :order => @order, :fields => @fields.join('',''), :conditions => @tk_conditions) do and nothing happens, it no longer creates a file. My read is like this, but it no longer gets anything as the cache() method doesn''t create anything. @fragment = read_fragment({:action => ''get_page'', :page => @page, :order => @order, :fields => @fields.join('',''), :conditions => @tk_conditions}) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
First do these two tasks and see if it works 1) check whether your cache directory has read and write permission, & 2) run ''rake tmp:clear'' from your app root and restart your server I hope this should solve your problem. On Nov 13, 7:00 pm, "wbsurf...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org" <wbsurf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have been using fragment caching and it seemed like it was working > pretty well. > I added some things and now it is not working. > > Could I have screwed it up if I deleted the cache files by hand that > it had in the temp directory ? Even if I did that, when I re execute > the statement: expire_fragment(%r{ticket/get_page.*}) . I would think > I would be back in business. > > I all the the cache this: > cache(:action => ''get_page'', :page => @page, :order => @order, :fields > => @fields.join('',''), :conditions => @tk_conditions) do > > and nothing happens, it no longer creates a file. > > My read is like this, but it no longer gets anything as the cache() > method doesn''t create anything. > @fragment = read_fragment({:action => ''get_page'', :page => @page, > :order => @order, :fields => > @fields.join('',''), > :conditions => @tk_conditions})--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---