According to GET parameters, I want to save the output HTML and save to my own cache. Next time it's called, load the cache. It sounds easy to use ob_start() and ob_get_contents() but what if the other running scripts in between use this too? It spoils the "original" output buffering, right?
How to globally save the output?
Reading stuff from the database is just as fast as reading it from a file.- you just noob. Nothing personal. And caching in files is almost most stupid kind of caching.