The critical temperature Tc and the critical current density Jc determine the limits to large-scale superconductor applications. Superconductivity emerges at Tc. The practical current-carrying capability, measured by Jc, is the ability of defects in superconductors to pin the magnetic vortices, and that may reduce Tc. Simultaneous increase of Tc and Jc in superconductors is desirable but very difficult to realize. Here we demonstrate a route to raise both Tc and Jc together in iron-based superconductors. By using low-energy proton irradiation, we create cascade defects in FeSe0.5Te0.5 films. Tc is enhanced due to the nanoscale compressive strain and proximity effect, whereas Jc is doubled under zero field at 4.2 K through strong vortex pinning by the cascade defects and surrounding nanoscale strain. At 12 K and above 15 T, one order of magnitude of Jc enhancement is achieved in both parallel and perpendicular magnetic fields to the film surface.