Describe how you would incorporate a caching mechanism into a PHP framework to improve the performance.