Hi everyone, I am implementing fragment caching in my application I''ve got the following architecture : A :has_many Cs :through Bs I''ve got a sweeper that observes B, in which I''ve got 2 methods : after_create(B) and after_delete(B), which expire a fragment of my cache. In my main controller, I adding/removing Cs to As like this : A << C, and this actually calls back after_create(B), as expected and A.Cs.delete(C) which doesn''t perform any call to after_delete(B), even though, the B element is actually deleted! Is this a normal behavior? If so, why is the call back only called when creating and not deleting? And is there a "smart" way to actually call by sweeper on delete? Thanks for your help! -- 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 -~----------~----~----~----~------~----~------~--~---