How to Cache all data, html to folder app/cache

Hi all, I want to cache all databse query to file at folder app/cache, and html.

Because I want to speed up the fastest. Please help me