We show that the upconversion emission spectra of Tm³⁺ and Yb³⁺ codoped β-NaYF₄-NaYF₄ core-shell nanoparticles can be judiciously modified by means of plasmonic nanocavities. Our analysis indicates that more than a 30-fold increase in conversion efficiency to the UV spectral band can be expected by engineering the NIR absorption and the local density of states. The effect of the nanocavity on the resulting radiation patterns is discussed. Our results are exemplified in cylindrical cavity geometries.