More than 12,000 residents have been forced to leave their homes after earlier fires saw about 22,000 go out.