Install and activate “MemcacheD Is Your Friend”
Memcached is a general-purpose distributed memory caching system. 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.Activate Memcache and Memcached from PHP Selector
- Login into your cPanel account
- Go to Select PHP version
- Enable memcache and memcached extensions
Activate Memcached server for your account
- Login into your cPanel account
- Go to Mocha Memcached
- Click on Enable, then on Start
Activate MemcacheD Is Your Friend in WordPress
- Login to your Wordpress admin dashboard
- Go to Plguins
- Click on Add New
- In search form, type “MemcacheD Is Your Friend”
- Click on Install Now, then Activate
- Now, login into your cPanel account and open wp-config.php with cPanel file manager
- Add the following two lines before MySQL setting in wp-config.php
define('WP\_CACHE', true); $memcached\_servers = array( 'default' => array('/home/myuser/memcached.sock:0'));
Note: Replace /home/myuser/memcached.sock with the path to your memcached unix socket, it can be viewed from cPanel -> Mocha Memcached.
- You can view Memcached statistics from cPanel -> Mocha Memcached

