Sorry, I just had to throw in my obscure references to "flies," because you inadvertantly touched upon my experience over the last few days. We keep our house fairly flie and spider free, by removing kitchen waste as soon as possible out to the garage, and later to the outside garbage can.
Recently, my wife left a watermelon rind on the counter and we suffered an inundation of fruit flies, which I have now, patiently, dealt with. But then a bunch of bananas went bad, and suddenly we had house flies everywhere.
As fast as I eliminated them there were more to replace them. That's when I noticed the garage can had gone "south," and was filled with fly larvae, aka maggots. ;) Whenever we went out to the garage, via the kitchen, we brought in more flies.
The smell was atrocious, and as soon as I removed this to outside, and aired out the garage the fly problem went away. But then you happened to mention that friendliness attracts flies! ;) I didn't know what you meant, but it certainly made me laugh! ;)
Have a nice day. Have a better day than we've been having!