Refactored/simplified update_on_delete
Put «collection changed» attribute into an internal cache