| Memcached in Joomla |
|
Memcached is a general-purpose distributed memory caching system that was originally developed by Danga Interactive for LiveJournal, but is now used by many other sites. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source (such as a database or API) must be read. Memcached is distributed under a permissive free software license.[1] - Source Wikipedia. Every time When we are talking about site performance "Caching" came as the most frequent Technique .Caching is awesome technique for the site performance but it also depends upon the cache handler as well .There are some very good cache handlers 1 - Xcache 2 - Zend Optimizer 3 - PHP accelerator 4 - Memcached etc....
By default Joomla uses the basic file cache handler which is also really good ,But for the high traffic sites we need some extra hardware and an awesome cache handler as well like Memcached How to Use MemCached in Joomla: Installation : This is the First and very important aspect , If the memcached is not properly installed then it wouldn't be fruitful .There are tons of example over installation of memcached on web .So we are not explaining this part . Configuration: If the memcached is properly installed on the server or host you'll see in your site configuration section of the joomla administrator as below
Choose Memory as the cache handler and press save now reopen the cache setting you will see as below
As shown in the above picture put the HOST as localhost and PORT as 11211. Don't alter any settings like Persistent Memory cache or Memory Cache Compression in this step , Now press save button .Never change the session settings . We did Site performance on the http://www.glasscommunity.com/ .I am attaching the screenshot before and after the site optimization Before The Site Optimization :
After the Site Optimization :
Thanks For enjoying this article .Cheers ;) |





