From the article:
> The vast spider population is attributed to an abundant food supply: more than 2.4 million midges in the cave, ready to be entangled in the intricate web.
...although I guess the question then is what sustains the millions of midges!
That's the interesting part! (And which the submitted NYT story regrettably neglects). It's a chemoautotrophic ecosystem[0] largely independent of the sun, and of photosynthetic life.
Akin to hydrothermal vents[1] in the ocean, and the lifeforms that eat that effluent.
[0] https://subtbiol.pensoft.net/article/162344/ ("An extraordinary colonial spider community in Sulfur Cave (Albania/Greece) sustained by chemoautotrophy")
> "Stable isotope analyses (δ¹³C and δ¹⁵N) revealed that the trophic web sustaining this assemblage is fueled by in situ primary production from sulfur-oxidizing microbial biofilms then transferred through chironomid larvae and adults to higher trophic levels."
From the livescience article linked by another poster: biofilm produced by sulfur-eating bacteria, which in turn metabolize sulfur from the sulfur-rich stream in the cave.
So the whole food-chain here is: sulfur -> bacteria -> midges -> spiders.