I would like to create a cache for my php pages on my site. I did find too many solutions but what I want is a script which can generate an HTML page from my database ex:
In my opinion this is the best solution. I use this for cache JSON file for my Android App. It can be simply use in other PHP files. It's optimize file size from ~1mb to ~163kb (gzip).
cache
folder in your directorycache_start.php
file and paste this code
cache_end.php
and paste this code
index.php
(file which you want to cache)