SOLVED Python Generator does not update when children are edited

I have a Python generator with a child object (in Object Manager).

When I move/scale/rotate the child object, the Python generator code does not run, and so the display becomes stale. I have to change the generator's User Data to get it to recalculate.

I tried using message() but that did not help, even for all mid's.

How can I make sure the generator code runs when its children have been edited?

I just figured out the answer - I needed to disable "Optimize Cache" on the generator's Object tab.