Configure Memcached Wordpress plugin with Unix socket
In this tutorial, we will install and activate "MemcacheD Is Your Friend" on Wordpress to reduce the server load and improve the site speed.
1) Enable Memcached server from cPanel, for more information, please refer to the following article
2) Login to your Wordpress as admin
3) Go to plugins -> Add New
4) Search for "Memcached Is Your Friend" and install it
5) Open wp-config.php with cPanel File Manager and add the following line:
$memcached_servers = array( 'default' => array('/home/YourUsername/memcached.sock:0'));
1. You can view the exact memcached.sock path from cPanel -> Mocha Memcached.
2. Port should be set to "0", when the socket is in use.
6) Under Wordpress Admin -> Tools -> Memcached you can see the unix socket is in use