James,
Soil-less media (perlite, vermiculite and raw compressed peat) typically do not have spores and fungus Gnats.
Compost, Garden Soils, Potting Soils, Manures or Solid Organic Fertilizers in the cutting mix attract or may introduce Fungus Gnats and microbes, they are attracted to Damp Soil and Fungus, where they lay their eggs. If you eliminate these, Fungus Gnat infestation will decrease dramatically. If you try to keep your cutting mix as sterile (clean) as possible, you will reduce or eliminate infestation and sources of rot causing microbes. Good Luck.