I have some models all linked together in memory (parent:child:child:child) and saved at the same time by saving the top-most parent.This works fine.
I rely on a counter cache value in an after_create hook of my model. However, my hook is called before the counter cach开发者_Python百科e gets updated, thus breaking a computation.