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

The Bakery:
Simple way to memcache (almost) all database queries
Jan 13, 2010 @ 19:20:56

On The Bakery (the CakePHP resource) there's a recent post looking at a simple way you can integrate database query caching (using memcache) into your CakePHP application's models.

Most common way to access data is a database. Most common way to speed this up - Memcached. As a quite young CakePHP developer I had a bit of headache "how to cache queries effectively?". Now I know the way, so I share.

Rafal's method, as seen in this example using the caching methods included with CakePHP to serialize and store the database queries out to a cache.

tagged: simple cakephp framework database query tutorial memcache

Link:


Trending Topics: