i would assume vac leak is under the hood, but gas cap most likely? theres not enought vacuum in the tank cuz of the cap and it throws a code? give it a shot
see thats what i was thinking.im betting its an EVAP leak from the gas cap. but without the actual code it would be hard to confirm.