A helicopter makes a water drop at the site of a wildfire Sunday, Aug. 17, 2014, in Glendora, Calif. A wildfire in the San Gabriel Mountains northeast of Los Angeles has forced the evacuation of roughly 200 people from a campground and recreational areas. (AP Photo/Mike Meadows)

A firefighter watches smoke rise at the site of a wildfire Sunday, Aug. 17, 2014, in Glendora, Calif. A wildfire in the San Gabriel Mountains northeast of Los Angeles has forced the evacuation of roughly 200 people from a campground and recreational areas. (AP Photo/Mike Meadows)

Firefighters gather at the site of a wildfire Sunday, Aug. 17, 2014, in Glendora, Calif. A wildfire in the San Gabriel Mountains northeast of Los Angeles has forced the evacuation of roughly 200 people from a campground and recreational areas. (AP Photo/Mike Meadows)

Smoke from a wildfire rises above the San Gabriel Mountains above Azusa, Calif., Sunday, Aug. 17, 2014. A wildfire in the Angeles National Forest in Southern California is forcing people to evacuate from a campground and recreational areas. U.S. Forest Service spokesman Nathan Judy says the fire above the foothill community of Azusa was reported about 2:30 p.m. Sunday. (AP Photo/John Antczak)

MARIPOSA, Calif. (AP) — Firefighters from throughout California were being dispatched Tuesday to protect homes threatened by an out-of-control wildfire burning in the foothills near Yosemite National Park, the second fire around the park in recent weeks.

The nearly 2-square-mile blaze in Madera County had destroyed eight structures and was threatening 500 others around Oakhurst, which is about 16 miles away from an entrance to Yosemite, fire officials said. Officials were hopeful, though, that cooler temperatures, higher humidity and calmer winds expected on Tuesday would help them begin containing the blaze.

It was not clear how many of the structures under threat were homes, but mandatory evacuation orders went out to some 13,000 phone numbers for homes and businesses on Monday, according to sheriff’s officials.

Four hotels in the community of Oakhurst about 16 miles away from an entrance to Yosemite were evacuated and Tuesday classes have been canceled for most of the Yosemite Unified School District.

State Route 41 toward Yosemite was closed down in the area and travelers would need to use different routes into the park, authorities said.

The fire was burning near a propane business with 30,000 gallon tanks on site, but the tanks were spared and the threat to them was brief, according to the Modesto Bee.

The fire comes on the heels of another blaze around Yosemite this summer and last year’s Rim Fire, which raged for two months across 400 square miles of land including part of Yosemite National Park. The Rim Fire threatened thousands of structures, destroyed 11 homes and cost more than $125 million to fight.

Last month’s fire, which also burned in the park, threatened about 100 homes and sent smoke into Yosemite’s famed valley before it was brought under control.

Meanwhile, another blaze that began Monday some 50 miles northeast of Bakersfield has surged to 3,000 acres, or nearly 5 square miles.