The worst thing you can do with fresh produce from the farmers market is refrigerate it. Everything about it being fresh picked today is diminished by the process, but what do you do to keep the pesky fruit flies away?
I can't figure out how to keep them out of my house, but I did learn this little trick.
Take a small bowl and put cider vinegar or red wine vinegar in it.
Cover with Saran wrap and poke with very small (fruit fly sized) holes.
Place on your counter.
The pests can get in, but they can't find their way back out. It's somewhat unpleasant, but beats the alternative.