News Feed
Jobs Feed
Sections



Recent Jobs

News Archive
PHPit.net:
How to build a simple caching system, with PHP
November 07, 2005 @ 06:04:25

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.

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.

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.

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...

0 comments voice your opinion now!





Community Events





Don't see your event here?
Let us know!


unittest custom podcast language development component api application opinion interview introduction symfony2 community phpunit framework series database conference release test

All content copyright, 2012 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework