In this new post from PHPit.net today, they step you through how to create a caching system for your website using the wonders of output buffering.
In this tutorial, I'm going to show you how to create a bare-bones caching system. Our system will be able to cache a complete page, by using the output buffer to save its HTML.
When you run a popular website that uses PHP and MySQL you will most likely notice that your website becomes slow when your website is at its busiest. If you've really optimized your PHP script and MySQL server, you'll probably be able squeeze some additional performance out of your website, but there comes a time when it's just too much to handle. That's where caching comes in.
He starts you off with a simple callback to grab the information in the script, tag it with a timestamp, and plenty of code you help you combine that into a simple caching system...




