Flies (fruit) in compost caddy - remedy?

With the unexpected arrival of warm weather we seem to be plagued by little flies (probably fruit flies) breeding inside the compost caddy.
We empty it regularly (every day or so) and wash it out but the flies are there again very quickly.
I understand that the eggs arrive on fresh fruit and vegetables so there will be a constant supply.
The only solution (wait for it) I've seen advocated is to build a fruit fly trap from a jam jar with a bit of banana skin (because fruit flies like a banana) and some cider vinegar as bait.
Blasting your future compost (or at least the Council's) with fly spray seems non-green.
Any other sensible solutions?
Cheers
Dave R
--
Windows 8.1 on PCSpecialist box

Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
Time flies like an arrow but fruit flies like a banana.
I'll get my coat.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
On 16/07/16 15:15, matthelliwell wrote:

Time flies? Difficult. They move too fast.
She attracts men like flies.
--
Those who want slavery should have the grace to name it by its proper
name. They must face the full meaning of that which they are advocating
  Click to see the full signature.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
On Saturday, 16 July 2016 12:14:05 UTC+1, David wrote:

Would putting it into the microwave cook the eggs and render them non-viable?
Owain
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

HomeOwnersHub.com is a website for homeowners and building and maintenance pros. It is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.