How does Redis or Memcache(d) work with WordPress?

Note: This feature is only available in the easyname Control Panel.

 

Socket Path

First, a socket path is required before caching can be set up in WordPress. You can set this up in the easyname Control Panel as follows: How can I create a Redis or memcached cache pool?

Redis:

In the WordPress backend, you can go to [Menu] then to [Plugins] and click on [Install] , then search for the plugin using the following search term: "Redis Object Cache" . The first result is the correct plugin; please install it. After installation, you can open the wp-config.php file in the root directory of your application and add the following entry:

define('WP_REDIS_PATH', '  YOUR_SOCKET_PATH  ');
define('WP_REDIS_PORT', '0');
define('WP_REDIS_DATABASE', '0');
define('WP_REDIS_SCHEME', 'unix');

Please insert this code just above the following line:

/* That's all, stop editing! Happy blogging. */

YOUR_SOCKET_PATH should be replaced with the socket path shown in the easyname Control Panel under [Webhosting] and [Caching] .

After saving, caching will be activated.

Memcache(d):

In the WordPress backend, you can go to [Menu] then to [Plugins] and click on [Install] , then search for the plugin using the following search term: "memcache". The correct plugin is called "MemcacheD Is Your Friend". Please click "Install" for this plugin. After installation, you can open the wp-config.php file in the root directory of your application and add the following entry:

 $memcached_servers = array('default' => array('  YOUR_SOCKET_PATH  :11211')); 

Please insert this code just above the following line:

/* That's all, stop editing! Happy blogging. */

YOUR_SOCKET_PATH should be replaced with the socket path shown in the easyname Control Panel under [Webhosting] in the submenu [Caching] . After saving, caching will be activated.