Caching mysql result with memcache and php

There are many ways to boost up the performance of the website like css amalgamation with php, use of plugins, caching in your php scripts, optimize your images, database etc.

I am going to share one of the method i.e memcache which help us to optimize load on the database. Normally a request for a dynamic page triggers multiple db queries, processing of output, and finally formatting to display on browser. This process can eventually be slow on larger sites or slower servers.