Install Memcached For Drupal 7
First of all, execute the following command lines to install the Memcached packages.Install Memcached For Drupal 7. You may already have some of these installed for you, but it doesn’t hurt to run them again.
In order to run Memcached, it needs its own memcache.conf file in your PHP configuration:
The default value is 32MB, but if feasible, you can allocate 1/4 of your total available RAM. To make these changes you need to open up memcached.conf and execute the following commands:
Now execute the following command to check if Memcached is running:
Following is the installation of Memcached for Drupal 7:
Now let’s start the installation and configuration of the Memcached Drupal module which integrates Drupal’s caching system with Memcached. First of all, put your site in offline mode and download, then enable the Memcached module again. After enabling the same, add the following to settings.php:
Now you will be required to change the unique_key for each installation and to add this to each settings.php file if you’re using a multi-site installation: