Therefore, caffeine may affect sleep by changing the circadian clock function.[39] Insufficient sleep is related to the occurrence of dysmenorrhea, and it may act on dysmenorrhea through this indirect effect. The gene discussed is CLOCK; the disease is Dysmenorrhea.