Drupal Memcache Configuration
Posted by Daniel Pooley on 10 November 2015 02:13 PM
This knowledge base article applies to the Umbrellar Low Density Shared Hosting plans.
What is Memcached?
Memcached (Mem-Cache-D) is a general-purpose distributed memory caching daemon. 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. This can greatly increase the speed of websites, such as Drupal that heavily utilise database resources.
How do I configure Drupal to use Memcached?
1. Login to your Drupal administrative interface (e.g. http://example.com/?q=admin)
2. Click on 'Modules' at the top then click the 'Install or update module' link.
3. Copy the following link into the 'Install from a URL' text box and click 'Install'
4. Enable the module by clicking on Modules at the top, then find the 'Memcache' and 'Memcache Admin' modules names and place a check in the box next to each, click the 'Save Configuration' button at the bottom.
5. Open the Drupal Configuration file in a text edit (sites/default/settings.php) and append the following to the end of the file
Note: the example.com domain name is used in the above configuration; you will have to update this to your domain name.
Once the above steps have been completed your Drupal installation will be utilising Memcached and you should see an increase in performance.