It is possible that your cap needs to be a Toyota cap.
It is also possible that is a different problem than your gas cap. P0442 is a code indicating a small leak.
Check for cracks, deformation and loose connection of these parts:
Fuel tank
Charcoal canister
Fuel tank filler pipe
Hoses and tubes around the fuel tank and charcoal canister
Check filler neck for damage or rust hole
Check vacuum hoses between vapor pressure sensor and fuel tank, charcoal canister and VSV for pressure switching valve, and VSV for pressure switching valve and charcoal canister.