Arrange a dental appointment soon, ideally within a few days. A cavity in a wisdom tooth can spread or cause infection, and a tooth with a cap (crown) can still develop decay at the edge or underneath it.
Seek
urgent dental care today if you have facial swelling, fever, pus/bad taste, trouble opening your mouth, swallowing, or breathing, or severe worsening pain. Cavities with dentine involvement generally need professional removal of decay and restoration, rather than home treatment (
Scott-Brown's Otorhinolaryngology Head & Neck Surgery, p. section Table 42.1). The ADA notes that severity determines whether a filling, crown, root canal, or extraction is needed (
ADA oral-health guidance).