We all know to avoid caffeine for a good night’s sleep — but it’s not the only dietary z’s disrupter. With daylight saving time around the corner, Dr. Neomi Shah, an associate professor of sleep medicine at Mount Sinai, flags a few foods that could be keeping you up at night. Read ’em and sleep:

Spicy foods

Maybe skip the jalapeno poppers: Research suggests that hot foods “result in changes in sleep,” Shah tells The Post. Meals containing lots of capsaicin — the compound that makes chili peppers so hot — can cause sleep-disrupting heartburn and indigestion. They can also mess with your internal body temperature, causing you to overheat at night.

Bad fats

If you’re sleeping eight hours and still waking up groggy, you might want to trim the fat. A “cholesterol-rich diet,” with fried foods, meat and dairy “is associated with nonrestorative sleep,” says Shah. Swap those out for healthier fats instead. The Mediterranean diet, Shah notes, has been linked to fewer insomnia symptoms, with most of its fat coming from fish and nuts.

Simple starches

Don’t be fooled by post-carb-binge sleepiness: High-glycemic-index foods, such as bread, potatoes and white rice “may increase your sleepiness” initially, says Shah. But they’ll soon spike your blood sugar, leading to sleep disturbances. When you wake up from your carb nap, Shah says, “you may not feel as restored.”

Juicy fruits & veggies

You wouldn’t chug a big glass of water before bed — so don’t eat watery foods, either. “If you’re going to eat foods that induce diuresis,” such as melon, cucumber or celery, “have that earlier in the day,” says Shah. Otherwise, you’ll wake up to nature calling.

Numerous nightcaps

Drinking might make you feel snoozy at first sip. But as with carb comas, the sleep booze brings isn’t very restorative, says Shah. “We have enormous amounts of data that show it actually disrupts sleep . . . and reduces REM sleep.” That means a groggier, unfocused morning — hangover or not.

This article originally appeared on the New York Post.