Hi all I''ve got a problem with the "cache classes" option in Rails. (config.cache_classes = true) When I turn it on, some objects are not reloaded during a long time. For example: If i load something from database with a datetime in the condition (created_at > 1.minutes.ago), the item will be desplayed much longer than just for this minute... I''m using rails 2.2 with a passenger server. Has someone an idea what could be wrong? Regards sigma --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 18 Dec 2008, at 09:18, sigma wrote:> > Hi all > > I''ve got a problem with the "cache classes" option in Rails. > (config.cache_classes = true) > When I turn it on, some objects are not reloaded during a long time. > > For example: > If i load something from database with a datetime in the condition > (created_at > 1.minutes.ago), the item will be desplayed much longer > than just for this minute... > > I''m using rails 2.2 with a passenger server. > > Has someone an idea what could be wrong? >Is it this: http://www.spacevatican.org/2008/11/9/do-you-know-when-your-code-runs ? Fred> Regards > sigma > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey thank you! I think that''s it! On 18 Dez., 11:01, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 18 Dec 2008, at 09:18, sigma wrote: > > > > > > > Hi all > > > I''ve got a problem with the "cache classes" option in Rails. > > (config.cache_classes = true) > > When I turn it on, some objects are not reloaded during a long time. > > > For example: > > If i load something from database with a datetime in the condition > > (created_at > 1.minutes.ago), the item will be desplayed much longer > > than just for this minute... > > > I''m using rails 2.2 with a passenger server. > > > Has someone an idea what could be wrong? > > Is it this:http://www.spacevatican.org/2008/11/9/do-you-know-when-your-code-runs > ? > > Fred > > > Regards > > sigma--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---