News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Turbocharge your Website with Memcached
February 07, 2012 @ 10:06:40

On the NetTuts.com site there's a new tutorial showing you how to introduce the Memcached tool to your application - a quick and easy way to cache data and optimize performance.

Your latest PHP/MySQL website is finally online. And it's awesome. But it's not as fast as you want it to be, because of the many SQL queries running every time a page is generated. And above that, you have the feeling it will not scale well under heavy loads. And you are most likely right. In this tutorial, we will see how you can greatly improve your website's responsiveness [...] by implementing a cache layer between your code and your database. The good news is it is fairly easy, and can be done in a few minutes!

They help you get the memcached server installed (a one-liner in most linux distributions) and how to install the memcached extension using PECL. Code is included showing you how to connect to the server, store data into the cache based on a generated key and how to pull the same data back out.

0 comments voice your opinion now!
memcached cache data tutorial introduction


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Creating a Mobile Photo Blog, Part 1

DevShed: Developing an Extensible TCP Server with Sockets in PHP

Mpwebwizard.com: Use a mirror for hits from popular websites

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 3: Composite View Pattern

Brian Swan's Blog: Consuming "Dallas" Data with PHP


Community Events

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


composer symfony list configure example php7 opinion project api yii2 laravel part2 introduction framework podcast language application community series interview

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