Caching should happen at the hardware level, if you are using caching using PHP you are doing it wrong.