Hi, I have a piece of html that I fragment cache. For a very strange reason every two times I request the page, rendering the fragment cache takes a lot of time. Example: 1) I request index page, rendering takes 300ms 2) I request again index page, rendering takes 1300ms 3) I request again index page, rendering takes 300ms 4) and so on Where could that come from??? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Fernando Perez wrote:> Hi, > > I have a piece of html that I fragment cache. For a very strange reason > every two times I request the page, rendering the fragment cache takes a > lot of time. > > Example: > > 1) I request index page, rendering takes 300ms > 2) I request again index page, rendering takes 1300ms > 3) I request again index page, rendering takes 300ms > 4) and so on > > > Where could that come from???I try to do some profiling with script/performance/request, but it seems broken, because when it has finished making requests, it never renders the results. In Rails 2.1.1 it worked fine though. Has anyone encountered this problem? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> I try to do some profiling with script/performance/request, but it seems > broken, because when it has finished making requests, it never renders > the results. In Rails 2.1.1 it worked fine though. > > Has anyone encountered this problem?I had forgotten to use production environment for the profiling, now it renders the results. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---