For sites that expect to get a lot of search engine traffic, this question should be a top priority. Sites that try to get more traffic from Google than they deserve, by employing search engine optimization tactics that Google doesn't like, typically discover that such arbitrage opportunities disappear very quickly.
According to the Mayo Clinic these are some known causes of leg cramps. As you can see alcoholism and dehydration are listed. I doubt that a couple of glasses of wine will cause them, but drinking water right before going to bed may help.
Drink a lot of water too: It maintains circulation and helps flush cramp-causing waste products from your muscles. Foods That Harm. Caffeine, usually found in coffee, tea, and soda, can contribute to cramps by constricting your blood vessels and decreasing circulation in muscles. Switch to decaf, herbal tea, or water. Quick fix: Curl and uncurl your toes rapidly a dozen times to relieve leg cramping.