I think there is a much simpler explanation. Web-building spiders typically seek out particular shapes for their webs. read more
It is not so much that your spider(s) have learned that lights (as a general concept) attract insects, but that they have learned that this light (the one in your photo) attracts insects. read more