Adsense code is not the actual advert. The code you use makes a call to the adsense servers to send an advert on pageload.
This works well and is, as far as I know, compatible with caching just fine.
If your income doesn’t match advert impressions you should probably talk to your adsense manager 🙂 They can probably explain where the discrepancy (if any) comes from – There are many rules and cave-ats that may cause adverts to show but not generate money.
Information, support and updates about plugins made and maintained by Arnan de Gans. Check out ajdg.solutions for more information.